public class Sha256Hash extends SimpleHash
SimpleHash
parent class JavaDoc for a detailed explanation of Hashing
techniques and how the overloaded constructors function.
JDK Version Note - Attempting to instantiate this class on JREs prior to version 1.4.0 will throw
an IllegalStateException
ByteSource.Util
Modifier and Type | Field and Description |
---|---|
static String |
ALGORITHM_NAME |
PREFERRED_ENCODING
Constructor and Description |
---|
Sha256Hash() |
Sha256Hash(Object source) |
Sha256Hash(Object source,
Object salt) |
Sha256Hash(Object source,
Object salt,
int hashIterations) |
Modifier and Type | Method and Description |
---|---|
static Sha256Hash |
fromBase64String(String base64) |
static Sha256Hash |
fromHexString(String hex) |
convertSaltToBytes, convertSourceToBytes, equals, getAlgorithmName, getBytes, getDigest, getIterations, getSalt, hash, hash, hash, hashCode, isEmpty, setBytes, setIterations, setSalt, toBase64, toByteSource, toHex, toString
isByteSource, objectToBytes, objectToString, toBytes, toBytes, toBytes, toBytes, toBytes, toBytes, toBytes, toChars, toChars, toString, toString, toString
public static final String ALGORITHM_NAME
public Sha256Hash()
public Sha256Hash(Object source)
public Sha256Hash(Object source, Object salt)
public Sha256Hash(Object source, Object salt, int hashIterations)
public static Sha256Hash fromHexString(String hex)
public static Sha256Hash fromBase64String(String base64)
Copyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.