Package org.apache.shiro.crypto.hash
Class Sha1Hash
- 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.Sha1Hash
-
- All Implemented Interfaces:
Serializable,Hash,org.apache.shiro.util.ByteSource
public class Sha1Hash extends SimpleHash
Generates an SHA-1 Hash (Secure Hash Standard, NIST FIPS 180-1) from a given input source with an optional salt and hash iterations. See theSimpleHashparent class JavaDoc for a detailed explanation of Hashing techniques and how the overloaded constructors function.- Since:
- 0.9
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringALGORITHM_NAME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Sha1HashfromBase64String(String base64)static Sha1HashfromHexString(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, setBytes, setIterations, setSalt, toBase64, toByteSource, toHex, toString
-
-
-
-
Field Detail
-
ALGORITHM_NAME
public static final String ALGORITHM_NAME
- See Also:
- Constant Field Values
-
-