public interface JDBCHashStrategy
Modifier and Type | Method and Description |
---|---|
String |
computeHash(String password,
String salt,
int version)
Compute the hashed password given the unhashed password and the salt
|
String |
generateSalt()
Compute a random salt.
|
String |
getHashedStoredPwd(JsonArray row)
Retrieve the hashed password from the result of the authentication query
|
String |
getSalt(JsonArray row)
Retrieve the salt from the result of the authentication query
|
void |
setNonces(List<String> nonces)
Sets a ordered list of nonces where each position corresponds to a version.
|
String generateSalt()
String computeHash(String password, String salt, int version)
password
- the unhashed passwordsalt
- the saltversion
- the nonce version to useString getHashedStoredPwd(JsonArray row)
row
- the rowString getSalt(JsonArray row)
row
- the rowvoid setNonces(List<String> nonces)
nonces
- a List of non null Strings.Copyright © 2017. All rights reserved.