public abstract class SimpleHashBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm()
Get the algorithm name.
|
abstract byte[] |
getHash()
Get the hash bytes.
|
byte[] |
getStoredHash()
Get the stored hash.
|
abstract boolean |
isHashValid()
Check if the current hash is valid.
|
T |
setAlgorithm(String algorithm)
Set the algorithm name.
|
T |
setStoredHash(byte[] storedHash)
Set the stored hash.
|
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.