Class HMACSigner

  • All Implemented Interfaces:
    JwsSigner

    public class HMACSigner
    extends AbstractJwsSigner
    Version:
    July 31, 2016
    Author:
    Javier Rojas Blum
    • Constructor Detail

      • HMACSigner

        public HMACSigner​(SignatureAlgorithm signatureAlgorithm,
                          java.lang.String sharedSecret)
    • Method Detail

      • generateSignature

        public java.lang.String generateSignature​(java.lang.String signingInput)
                                           throws java.security.SignatureException
        Specified by:
        generateSignature in class AbstractJwsSigner
        Throws:
        java.security.SignatureException
      • validateSignature

        public boolean validateSignature​(java.lang.String signingInput,
                                         java.lang.String signature)
                                  throws java.security.SignatureException
        Specified by:
        validateSignature in class AbstractJwsSigner
        Throws:
        java.security.SignatureException