Package com.nimbusds.jose.proc
Interface JWSVerifierFactory
- All Superinterfaces:
JCAAware<JCAContext>
,JOSEProvider
,JWSProvider
- All Known Implementing Classes:
DefaultJWSVerifierFactory
JSON Web Signature (JWS) verifier factory.
- Version:
- 2015-11-16
- Author:
- Vladimir Dzhuvinov
-
Method Summary
Modifier and TypeMethodDescriptioncreateJWSVerifier
(JWSHeader header, Key key) Creates a new JWS verifier for the specified header and key.Methods inherited from interface com.nimbusds.jose.jca.JCAAware
getJCAContext
Methods inherited from interface com.nimbusds.jose.JWSProvider
supportedJWSAlgorithms
-
Method Details
-
createJWSVerifier
Creates a new JWS verifier for the specified header and key.- Parameters:
header
- The JWS header. Notnull
.key
- The key intended to verify the JWS message. Notnull
.- Returns:
- The JWS verifier.
- Throws:
JOSEException
- If the JWS algorithm is not supported or the key type or length doesn't match the expected for the JWS algorithm.
-