Package org.apache.shiro.crypto.hash
Class Sha512Hash
java.lang.Object
org.apache.shiro.lang.codec.CodecSupport
org.apache.shiro.crypto.hash.SimpleHash
org.apache.shiro.crypto.hash.Sha512Hash
- All Implemented Interfaces:
Serializable,Hash,org.apache.shiro.lang.util.ByteSource
Generates an SHA-512 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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.shiro.lang.util.ByteSource
org.apache.shiro.lang.util.ByteSource.Util -
Field Summary
FieldsFields inherited from class org.apache.shiro.lang.codec.CodecSupport
PREFERRED_ENCODING -
Constructor Summary
ConstructorsConstructorDescriptionSha512Hash(Object source) Sha512Hash(Object source, Object salt) Sha512Hash(Object source, Object salt, int hashIterations) -
Method Summary
Modifier and TypeMethodDescriptionstatic Sha512HashfromBase64String(String base64) static Sha512HashfromHexString(String hex) Methods inherited from class org.apache.shiro.crypto.hash.SimpleHash
convertSaltToBytes, convertSourceToBytes, equals, getAlgorithmName, getBytes, getDigest, getIterations, getSalt, hash, hash, hash, hashCode, isEmpty, matchesPassword, setBytes, setIterations, setSalt, toBase64, toByteSource, toHex, toStringMethods inherited from class org.apache.shiro.lang.codec.CodecSupport
isByteSource, objectToBytes, objectToString, toBytes, toBytes, toBytes, toBytes, toBytes, toBytes, toBytes, toChars, toChars, toString, toString, toString
-
Field Details
-
ALGORITHM_NAME
Sha512 algorithm name.- See Also:
-
-
Constructor Details
-
Sha512Hash
public Sha512Hash() -
Sha512Hash
-
Sha512Hash
-
Sha512Hash
-
-
Method Details
-
fromHexString
-
fromBase64String
-