| Modifier and Type | Field and Description | 
|---|---|
static io.vertx.lang.rx.TypeArg<HashStrategy> | 
__TYPE_ARG  | 
| Constructor and Description | 
|---|
HashStrategy(HashStrategy delegate)  | 
HashStrategy(Object delegate)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
computeHash(String password,
           User user)
Compute the hashed password given the unhashed password and the user 
 | 
boolean | 
equals(Object o)  | 
HashStrategy | 
getDelegate()  | 
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 
 | 
int | 
hashCode()  | 
static HashStrategy | 
newInstance(HashStrategy arg)  | 
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 | 
toString()  | 
public static final io.vertx.lang.rx.TypeArg<HashStrategy> __TYPE_ARG
public HashStrategy(HashStrategy delegate)
public HashStrategy(Object delegate)
public HashStrategy getDelegate()
public String computeHash(String password, User user)
password - the unhashed passworduser - the user to get the salt for. This paramter is needed, if the  is declared to be usedpublic String getStoredPwd(User user)
user - the user to get the stored password forpublic String getSalt(User user)
HashSaltStyleuser - the user to get the salt for. This paramter is needed, if the  is declared to be usedpublic void setExternalSalt(String salt)
salt - the salt, which shall be usedpublic void setSaltStyle(HashSaltStyle saltStyle)
HashSaltStyle.saltStyle - the HashSaltStyle to be usedpublic HashSaltStyle getSaltStyle()
HashSaltStyle of the current instancepublic void setAlgorithm(HashAlgorithm algorithm)
algorithm - the choosen algorithmpublic static HashStrategy newInstance(HashStrategy arg)
Copyright © 2020 Eclipse. All rights reserved.