Package com.nimbusds.jose.proc
Interface JWSVerifierFactory
-
- All Superinterfaces:
JCAAware<JCAContext>
,JOSEProvider
,JWSProvider
- All Known Implementing Classes:
DefaultJWSVerifierFactory
public interface JWSVerifierFactory extends JWSProvider
JSON Web Signature (JWS) verifier factory.- Version:
- 2015-11-16
- Author:
- Vladimir Dzhuvinov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JWSVerifier
createJWSVerifier(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 Detail
-
createJWSVerifier
JWSVerifier createJWSVerifier(JWSHeader header, Key key) throws JOSEException
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.
-
-