public interface PasswordHasher2 extends PasswordHasher
SSHAPasswordHasher
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
Modifier and Type | Method and Description |
---|---|
boolean |
checkPassword(java.lang.String pLogin,
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 pLogin,
java.lang.String pPassword)
Encrypts a password suitably for long-term storage.
|
PasswordHasher |
getLoginPasswordHasher()
Returns a password hasher instance useful for performing a login.
|
java.lang.Object |
getPasswordHashKey()
Returns the hash key (if any) that was used for hashing the password
for login.
|
java.lang.String |
hashPasswordForLogin(java.lang.String pLogin,
java.lang.String pPassword)
Performs the appropriate hashing function for a login process.
|
checkPassword, encryptPassword, getPwdHasherComponentPath, hashPasswordForLogin
static final java.lang.String CLASS_VERSION
java.lang.Object getPasswordHashKey()
getPasswordHashKey
in interface PasswordHasher
PasswordHasher getLoginPasswordHasher()
getLoginPasswordHasher
in interface PasswordHasher
java.lang.String encryptPassword(java.lang.String pLogin, java.lang.String pPassword)
boolean checkPassword(java.lang.String pLogin, java.lang.String pLoginPassword, java.lang.String pEncryptedPassword, java.lang.Object pHashKey)
java.lang.String hashPasswordForLogin(java.lang.String pLogin, java.lang.String pPassword)