Package org.webpki.jose.jws
Class JWSHmacSigner
java.lang.Object
org.webpki.jose.jws.JWSSigner
org.webpki.jose.jws.JWSHmacSigner
JWS HMAC signer
-
Constructor Summary
ConstructorDescriptionJWSHmacSigner
(byte[] secretKey, HmacAlgorithms algorithm) Initialize signer. -
Method Summary
Methods inherited from class org.webpki.jose.jws.JWSSigner
addHeaderItems, setKeyId, setProvider, sign, sign
-
Constructor Details
-
JWSHmacSigner
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 usealgorithm
- HMAC Algorithm to use
-