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