Class 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 the SimpleHash parent class JavaDoc for a detailed explanation of Hashing techniques and how the overloaded constructors function.

    Since:
    0.9
    See Also:
    Serialized Form
    • Constructor Detail

      • Sha1Hash

        public Sha1Hash()
      • Sha1Hash

        public Sha1Hash​(Object source)
      • Sha1Hash

        public Sha1Hash​(Object source,
                        Object salt)
      • Sha1Hash

        public Sha1Hash​(Object source,
                        Object salt,
                        int hashIterations)
    • Method Detail

      • fromHexString

        public static Sha1Hash fromHexString​(String hex)
      • fromBase64String

        public static Sha1Hash fromBase64String​(String base64)