public class SaltedMD5PasswordHasher extends PasswordHasher2Adapter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
Constructor and Description |
---|
SaltedMD5PasswordHasher()
Construct a new SaltedMD5PasswordHasher with a randomized initial state.
|
SaltedMD5PasswordHasher(java.lang.Long pInitialHashState)
Construct a new SaltedMD5PasswordHasher with the given initial state.
|
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.
|
java.lang.String |
generateSalt() |
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, setPwdHasherComponentPath
public SaltedMD5PasswordHasher()
public SaltedMD5PasswordHasher(java.lang.Long pInitialHashState)
public java.lang.Object getPasswordHashKey()
public PasswordHasher getLoginPasswordHasher()
public java.lang.String encryptPassword(java.lang.String pLogin, java.lang.String pPassword)
public boolean checkPassword(java.lang.String pLogin, java.lang.String pLoginPassword, java.lang.String pEncryptedPassword, java.lang.Object pHashKey)
public java.lang.String hashPasswordForLogin(java.lang.String pLogin, java.lang.String pPassword)
public java.lang.String generateSalt()
generateSalt
in class PasswordHasher2Adapter