HashingStrategy. The new
implementation is backend agnostic and follows a standard format that can be reused across different storages.@Deprecated public interface HashStrategy
| Modifier and Type | Method and Description |
|---|---|
String |
computeHash(String password,
User user)
Deprecated.
Compute the hashed password given the unhashed password and the user
|
String |
getSalt(User user)
Deprecated.
Retrieve the salt.
|
HashSaltStyle |
getSaltStyle()
Deprecated.
Get the defined
HashSaltStyle of the current instance |
String |
getStoredPwd(User user)
Deprecated.
Retrieve the password from the user, or as clear text or as hashed version, depending on the definition
|
void |
setAlgorithm(HashAlgorithm algorithm)
Deprecated.
Allows the selection of the hashing algorithm.
|
void |
setExternalSalt(String salt)
Deprecated.
Set an external salt.
|
void |
setSaltStyle(HashSaltStyle saltStyle)
Deprecated.
Set the saltstyle as defined by
HashSaltStyle. |
String computeHash(String password, User user)
password - the unhashed passworduser - the user to get the salt for. This paramter is needed, if the HashSaltStyle.COLUMN is declared to be
usedString getStoredPwd(User user)
user - the user to get the stored password forString getSalt(User user)
HashSaltStyleuser - the user to get the salt for. This paramter is needed, if the HashSaltStyle.COLUMN is declared to be
usedHashSaltStyle.NO_SALT the salt of the user or a defined external saltvoid setExternalSalt(String salt)
HashSaltStyle.EXTERNALsalt - the salt, which shall be usedvoid setSaltStyle(HashSaltStyle saltStyle)
HashSaltStyle.saltStyle - the HashSaltStyle to be usedHashSaltStyle getSaltStyle()
HashSaltStyle of the current instancevoid setAlgorithm(HashAlgorithm algorithm)
algorithm - the choosen algorithmCopyright © 2022 Eclipse. All rights reserved.