com.liferay.portal.security.pwd
Class PasswordEncryptorUtil
java.lang.Object
com.liferay.portal.security.pwd.PasswordEncryptorUtil
- Direct Known Subclasses:
- PwdEncryptor
public class PasswordEncryptorUtil
- 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
TYPE_BCRYPT
public static final String TYPE_BCRYPT
- See Also:
- Constant Field Values
TYPE_CRYPT
public static final String TYPE_CRYPT
- Deprecated. As of 6.1.0, replaced by
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_PBKDF2
public static final String TYPE_PBKDF2
- 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
PasswordEncryptorUtil
public PasswordEncryptorUtil()
encrypt
public static String encrypt(String plainTextPassword)
throws PwdEncryptorException
- Throws:
PwdEncryptorException
encrypt
public static String encrypt(String plainTextPassword,
String encryptedPassword)
throws PwdEncryptorException
- Throws:
PwdEncryptorException
encrypt
public static String encrypt(String algorithm,
String plainTextPassword,
String encryptedPassword)
throws PwdEncryptorException
- Throws:
PwdEncryptorException
getPasswordEncryptor
public PasswordEncryptor getPasswordEncryptor()
setPasswordEncryptor
public void setPasswordEncryptor(PasswordEncryptor passwordEncryptor)