public abstract class HashWithSalt2Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm()
Get the algorithm name.
|
byte[] |
getFixedSalt()
Get the fixed salt.
|
abstract byte[] |
getHash()
Get the hash bytes.
|
SaltOrder |
getSaltOrder()
Get the salt order.
|
SaltStoreType |
getSaltStoreType()
Get the salt store type.
|
byte[] |
getStoredHash()
Get the stored hash.
|
byte[] |
getStoredSalt()
Get the stored salt.
|
abstract boolean |
isHashValid()
Check if the current hash is valid.
|
T |
setAlgorithm(String algorithm)
Set the algorithm name.
|
HashWithSalt2Builder |
setFixedSalt(byte[] fixedSalt)
Set the fixed salt.
|
HashWithSalt2Builder |
setSaltOrder(SaltOrder saltOrder)
Set the salt order.
|
HashWithSalt2Builder |
setSaltStoreType(SaltStoreType saltStoreType)
Set the salt store type.
|
T |
setStoredHash(byte[] storedHash)
Set the stored hash.
|
HashWithSalt2Builder |
setStoredSalt(byte[] storedSalt)
Set the stored salt.
|
public final byte[] getStoredSalt()
public final HashWithSalt2Builder setStoredSalt(byte[] storedSalt)
storedSalt - the stored salt.public final byte[] getFixedSalt()
public final HashWithSalt2Builder setFixedSalt(byte[] fixedSalt)
fixedSalt - the fixed salt.public final SaltOrder getSaltOrder()
public final HashWithSalt2Builder setSaltOrder(SaltOrder saltOrder)
saltOrder - the salt order.public final SaltStoreType getSaltStoreType()
public final HashWithSalt2Builder 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.