Class JWSHmacSigner

java.lang.Object
org.webpki.jose.jws.JWSSigner
org.webpki.jose.jws.JWSHmacSigner

public class JWSHmacSigner extends JWSSigner
JWS HMAC signer
  • Constructor Details

    • JWSHmacSigner

      public JWSHmacSigner(byte[] secretKey, HmacAlgorithms algorithm)
      Initialize signer. Note that a signer object may be used any number of times (assuming that the same parameters are valid). It is also thread-safe.
      Parameters:
      secretKey - The key to use
      algorithm - HMAC Algorithm to use