public abstract class HashWithSaltBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm()
Get the algorithm name.
|
abstract byte[] |
getHash()
Get the hash bytes.
|
byte[] |
getSalt()
Get the salt.
|
SaltStoreType |
getSaltStoreType()
Get the salt store type.
|
byte[] |
getStoredHash()
Get the stored hash.
|
abstract boolean |
isHashValid()
Check if the current hash is valid.
|
T |
setAlgorithm(String algorithm)
Set the algorithm name.
|
HashWithSaltBuilder |
setSalt(byte[] salt)
Set the salt.
|
HashWithSaltBuilder |
setSaltStoreType(SaltStoreType saltStoreType)
Set the salt store type.
|
T |
setStoredHash(byte[] storedHash)
Set the stored hash.
|
public final byte[] getSalt()
public final HashWithSaltBuilder setSalt(byte[] salt)
salt - the salt.public final SaltStoreType getSaltStoreType()
public final HashWithSaltBuilder setSaltStoreType(SaltStoreType saltStoreType)
saltStoreType - the salt store type.public final String getAlgorithm()
public final T setAlgorithm(String algorithm)
algorithm - the algorithm name.public abstract byte[] getHash()
public final byte[] getStoredHash()
public final T setStoredHash(byte[] storedHash)
storedHash - the stored hash.public abstract boolean isHashValid()
Copyright © 2017. All rights reserved.