Class SHA1

  • All Implemented Interfaces:
    HASH

    public class SHA1
    extends java.lang.Object
    implements HASH
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.security.MessageDigest md  
    • Constructor Summary

      Constructors 
      Constructor Description
      SHA1()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] digest()  
      int getBlockSize()  
      void init()  
      void update​(byte[] foo, int start, int len)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • md

        java.security.MessageDigest md
    • Constructor Detail

      • SHA1

        public SHA1()
    • Method Detail

      • getBlockSize

        public int getBlockSize()
        Specified by:
        getBlockSize in interface HASH
      • init

        public void init()
                  throws java.lang.Exception
        Specified by:
        init in interface HASH
        Throws:
        java.lang.Exception
      • update

        public void update​(byte[] foo,
                           int start,
                           int len)
                    throws java.lang.Exception
        Specified by:
        update in interface HASH
        Throws:
        java.lang.Exception
      • digest

        public byte[] digest()
                      throws java.lang.Exception
        Specified by:
        digest in interface HASH
        Throws:
        java.lang.Exception