Class HMACSignature


  • public class HMACSignature
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      HMACSignature()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] sign​(java.lang.String algorithm, byte[] value, byte[] key)  
      static boolean verify​(java.lang.String algorithm, byte[] value, byte[] key, byte[] signature)  
      • Methods inherited from class java.lang.Object

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

      • HMACSignature

        public HMACSignature()
    • Method Detail

      • sign

        public static byte[] sign​(java.lang.String algorithm,
                                  byte[] value,
                                  byte[] key)
        Parameters:
        value -
        key -
        Returns:
      • verify

        public static boolean verify​(java.lang.String algorithm,
                                     byte[] value,
                                     byte[] key,
                                     byte[] signature)