public abstract class PasswordHasher2Adapter extends java.lang.Object implements PasswordHasher2
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Constructor and Description |
---|
PasswordHasher2Adapter() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkPassword(java.lang.String pLoginPassword,
java.lang.String pEncryptedPassword,
java.lang.Object pHashKey)
Returns true if the login password matches the encrypted password.
|
java.lang.String |
encryptPassword(java.lang.String pPassword)
Encrypts a password suitably for long-term storage.
|
abstract java.lang.String |
generateSalt() |
java.lang.String |
getPwdHasherComponentPath()
Gets the PasswordHasher component path used.
|
java.lang.String |
hashPasswordForLogin(java.lang.String pPassword)
Performs the appropriate hashing function for a login process.
|
void |
setPwdHasherComponentPath(java.lang.String pwdHasherComponentPath)
Sets the PasswordHasher component path used.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPassword, encryptPassword, getLoginPasswordHasher, getPasswordHashKey, hashPasswordForLogin
public void setPwdHasherComponentPath(java.lang.String pwdHasherComponentPath)
public java.lang.String getPwdHasherComponentPath()
getPwdHasherComponentPath
in interface PasswordHasher
public java.lang.String encryptPassword(java.lang.String pPassword)
encryptPassword
in interface PasswordHasher
public boolean checkPassword(java.lang.String pLoginPassword, java.lang.String pEncryptedPassword, java.lang.Object pHashKey)
checkPassword
in interface PasswordHasher
public java.lang.String hashPasswordForLogin(java.lang.String pPassword)
hashPasswordForLogin
in interface PasswordHasher
public abstract java.lang.String generateSalt()