public class HashInfo extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
HashAlgorithmType |
hashAlgorithm |
String |
hashedValue |
String |
unhashedValue |
Modifier | Constructor and Description |
---|---|
protected |
HashInfo(HashAlgorithmType hashAlgorithmType,
String hashedValue,
String unhashedValue) |
Modifier and Type | Method and Description |
---|---|
protected static byte[] |
createMessageDigest(String algorithm,
byte[] salt,
byte[] unhashed) |
static HashInfo |
getInstanceByHashedValue(String hashedValue) |
static HashInfo |
getInstanceByUnhashedValue(Configuration configuration,
String unhashed) |
boolean |
verify(String valueToVerify) |
public final HashAlgorithmType hashAlgorithm
public final String unhashedValue
public final String hashedValue
protected HashInfo(HashAlgorithmType hashAlgorithmType, String hashedValue, String unhashedValue)
public static HashInfo getInstanceByUnhashedValue(Configuration configuration, String unhashed)
protected static byte[] createMessageDigest(String algorithm, byte[] salt, byte[] unhashed)
public boolean verify(String valueToVerify)