Class SHA1


  • @Deprecated
    public class SHA1
    extends java.lang.Object
    Deprecated.
    Rather use MessageDigest.getInstance(String)
    SHA1 abstraction
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static SHA1 NULL
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      SHA1​(byte[] bytes)
      Deprecated.
       
      SHA1​(int w0, int w1, int w2, int w3, int w4)
      Deprecated.
       
      SHA1​(java.lang.String str)
      Deprecated.
       
    • Field Detail

      • NULL

        public static final SHA1 NULL
        Deprecated.
    • Constructor Detail

      • SHA1

        public SHA1​(int w0,
                    int w1,
                    int w2,
                    int w3,
                    int w4)
        Deprecated.
      • SHA1

        public SHA1​(java.lang.String str)
        Deprecated.
      • SHA1

        public SHA1​(byte[] bytes)
        Deprecated.
    • Method Detail

      • getInts

        public int[] getInts()
        Deprecated.
      • getBytes

        public byte[] getBytes()
        Deprecated.
      • digest

        public static SHA1 digest​(java.io.InputStream in)
                           throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • digest

        public static SHA1 digest​(java.io.File file)
                           throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Deprecated.
        Overrides:
        equals in class java.lang.Object