Class MAC


  • public class MAC
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String HMACSHA1  
    • Constructor Summary

      Constructors 
      Constructor Description
      MAC()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] hmacsha1​(byte[] keyBytes, byte[] input)  
      static byte[] hmacsha1​(javax.crypto.spec.SecretKeySpec key, byte[] input)  
      • Methods inherited from class java.lang.Object

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

      • MAC

        public MAC()
    • Method Detail

      • hmacsha1

        public static byte[] hmacsha1​(javax.crypto.spec.SecretKeySpec key,
                                      byte[] input)
                               throws java.security.InvalidKeyException
        Throws:
        java.security.InvalidKeyException
      • hmacsha1

        public static byte[] hmacsha1​(byte[] keyBytes,
                                      byte[] input)
                               throws java.security.InvalidKeyException
        Throws:
        java.security.InvalidKeyException