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| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM_NAME |
| 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, toStringpublic static final String ALGORITHM_NAME
public Sha256Hash()
public Sha256Hash(Object source)
public static Sha256Hash fromHexString(String hex)
public static Sha256Hash fromBase64String(String base64)
Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.