Class HMACSHA1

  • All Implemented Interfaces:
    MAC
    Direct Known Subclasses:
    HMACSHA196

    public class HMACSHA1
    extends java.lang.Object
    implements MAC
    • Constructor Summary

      Constructors 
      Constructor Description
      HMACSHA1()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doFinal​(byte[] buf, int offset)  
      int getBlockSize()  
      java.lang.String getName()  
      void init​(byte[] key)  
      protected void setH​(java.security.MessageDigest md)  
      void update​(byte[] foo, int s, int l)  
      void update​(int i)  
      • Methods inherited from class java.lang.Object

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

      • HMACSHA1

        public HMACSHA1()
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface MAC
      • setH

        protected void setH​(java.security.MessageDigest md)
      • getBlockSize

        public int getBlockSize()
      • init

        public void init​(byte[] key)
                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • update

        public void update​(int i)
      • update

        public void update​(byte[] foo,
                           int s,
                           int l)
      • doFinal

        public void doFinal​(byte[] buf,
                            int offset)