org.apache.shiro.crypto.hash
Class Sha384Hash
java.lang.Object
org.apache.shiro.codec.CodecSupport
org.apache.shiro.crypto.hash.AbstractHash
org.apache.shiro.crypto.hash.SimpleHash
org.apache.shiro.crypto.hash.Sha384Hash
- All Implemented Interfaces:
- Serializable, Hash, ByteSource
public class Sha384Hash
- extends SimpleHash
Generates an SHA-384 Hash from a given input source with an optional salt and hash iterations.
See the 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
- Since:
- 0.9
- See Also:
- Serialized Form
Methods inherited from class org.apache.shiro.crypto.hash.SimpleHash |
convertSaltToBytes, convertSourceToBytes, equals, getAlgorithmName, getBytes, getDigest, getIterations, getSalt, hash, hash, hash, hashCode, isEmpty, setBytes, setIterations, setSalt, toBase64, toByteSource, toHex, toString |
Methods inherited from class org.apache.shiro.codec.CodecSupport |
isByteSource, objectToBytes, objectToString, toBytes, toBytes, toBytes, toBytes, toBytes, toBytes, toBytes, toChars, toChars, toString, toString, toString |
ALGORITHM_NAME
public static final String ALGORITHM_NAME
- See Also:
- Constant Field Values
Sha384Hash
public Sha384Hash()
Sha384Hash
public Sha384Hash(Object source)
Sha384Hash
public Sha384Hash(Object source,
Object salt)
Sha384Hash
public Sha384Hash(Object source,
Object salt,
int hashIterations)
fromHexString
public static Sha384Hash fromHexString(String hex)
fromBase64String
public static Sha384Hash fromBase64String(String base64)
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.