com.liferay.portal.security.pwd
Class BasePasswordEncryptor
java.lang.Object
com.liferay.portal.security.pwd.BasePasswordEncryptor
- All Implemented Interfaces:
- com.liferay.portal.kernel.security.pwd.PasswordEncryptor
- Direct Known Subclasses:
- BCryptPasswordEncryptor, CompositePasswordEncryptor, CryptPasswordEncryptor, DefaultPasswordEncryptor, LegacyAlgorithmAwarePasswordEncryptor, NullPasswordEncryptor, PBKDF2PasswordEncryptor, SSHAPasswordEncryptor
public abstract class BasePasswordEncryptor
- extends Object
- implements com.liferay.portal.kernel.security.pwd.PasswordEncryptor
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.kernel.security.pwd.PasswordEncryptor |
getSupportedAlgorithmTypes |
BasePasswordEncryptor
public BasePasswordEncryptor()
encrypt
public String encrypt(String plainTextPassword,
String encryptedPassword)
throws com.liferay.portal.kernel.exception.PwdEncryptorException
- Specified by:
encrypt in interface com.liferay.portal.kernel.security.pwd.PasswordEncryptor
- Throws:
com.liferay.portal.kernel.exception.PwdEncryptorException
encrypt
public String encrypt(String algorithm,
String plainTextPassword,
String encryptedPassword)
throws com.liferay.portal.kernel.exception.PwdEncryptorException
- Specified by:
encrypt in interface com.liferay.portal.kernel.security.pwd.PasswordEncryptor
- Throws:
com.liferay.portal.kernel.exception.PwdEncryptorException
getDefaultPasswordAlgorithmType
public String getDefaultPasswordAlgorithmType()
- Specified by:
getDefaultPasswordAlgorithmType in interface com.liferay.portal.kernel.security.pwd.PasswordEncryptor
doEncrypt
protected abstract String doEncrypt(String algorithm,
String plainTextPassword,
String encryptedPassword)
throws com.liferay.portal.kernel.exception.PwdEncryptorException
- Throws:
com.liferay.portal.kernel.exception.PwdEncryptorException