public interface HashStrategy
| Modifier and Type | Method and Description | 
|---|---|
String | 
computeHash(String password,
           User user)
Compute the hashed password given the unhashed password and the user 
 | 
String | 
getSalt(User user)
Retrieve the salt. 
 | 
HashSaltStyle | 
getSaltStyle()
Get the defined  
HashSaltStyle of the current instance | 
String | 
getStoredPwd(User user)
Retrieve the password from the user, or as clear text or as hashed version, depending on the definition 
 | 
void | 
setAlgorithm(HashAlgorithm algorithm)
Allows the selection of the hashing algorithm. 
 | 
void | 
setExternalSalt(String salt)
Set an external salt. 
 | 
void | 
setSaltStyle(HashSaltStyle saltStyle)
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 © 2020 Eclipse. All rights reserved.