Package com.nimbusds.jose.produce
Interface JWSSignerFactory
- All Superinterfaces:
JCAAware<JCAContext>
,JOSEProvider
,JWSProvider
- All Known Implementing Classes:
DefaultJWSSignerFactory
JSON Web Signature (JWS) signer factory to create a signer out of a JSON Web
Key (JWK).
- Version:
- 2020-03-26
- Author:
- Justin Richer
-
Method Summary
Modifier and TypeMethodDescriptioncreateJWSSigner
(JWK key) Create a JWS signer based on the key.createJWSSigner
(JWK key, JWSAlgorithm alg) Create a JWS signer based on the key and algorithm.Methods inherited from interface com.nimbusds.jose.jca.JCAAware
getJCAContext
Methods inherited from interface com.nimbusds.jose.JWSProvider
supportedJWSAlgorithms
-
Method Details
-
createJWSSigner
Create a JWS signer based on the key.- Parameters:
key
- The JWK. Must not benull
.- Returns:
- The JWS signer.
- Throws:
JOSEException
-
createJWSSigner
Create a JWS signer based on the key and algorithm. Ensures that the key supports the given algorithm.- Parameters:
key
- The JWK. Must not benull
.alg
- The algorithm. Must not benull
.- Returns:
- The JWS signer.
- Throws:
JOSEException
-