com.liferay.portal.security.pwd
Class PwdEncryptor
java.lang.Object
com.liferay.portal.security.pwd.PwdEncryptor
public class PwdEncryptor
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PASSWORDS_ENCRYPTION_ALGORITHM
public static final String PASSWORDS_ENCRYPTION_ALGORITHM
SALT_CHARS
public static final char[] SALT_CHARS
TYPE_BCRYPT
public static final String TYPE_BCRYPT
- See Also:
- Constant Field Values
TYPE_CRYPT
public static final String TYPE_CRYPT
- Deprecated.
TYPE_UFC_CRYPT
- See Also:
- Constant Field Values
TYPE_MD2
public static final String TYPE_MD2
- See Also:
- Constant Field Values
TYPE_MD5
public static final String TYPE_MD5
- See Also:
- Constant Field Values
TYPE_NONE
public static final String TYPE_NONE
- See Also:
- Constant Field Values
TYPE_SHA
public static final String TYPE_SHA
- See Also:
- Constant Field Values
TYPE_SHA_256
public static final String TYPE_SHA_256
- See Also:
- Constant Field Values
TYPE_SHA_384
public static final String TYPE_SHA_384
- See Also:
- Constant Field Values
TYPE_SSHA
public static final String TYPE_SSHA
- See Also:
- Constant Field Values
TYPE_UFC_CRYPT
public static final String TYPE_UFC_CRYPT
- See Also:
- Constant Field Values
PwdEncryptor
public PwdEncryptor()
encrypt
public static String encrypt(String clearTextPassword)
throws PwdEncryptorException
- Throws:
PwdEncryptorException
encrypt
public static String encrypt(String clearTextPassword,
String currentEncryptedPassword)
throws PwdEncryptorException
- Throws:
PwdEncryptorException
encrypt
public static String encrypt(String algorithm,
String clearTextPassword,
String currentEncryptedPassword)
throws PwdEncryptorException
- Throws:
PwdEncryptorException
encodePassword
protected static String encodePassword(String algorithm,
String clearTextPassword,
byte[] saltBytes)
throws PwdEncryptorException
- Throws:
PwdEncryptorException