Package com.nimbusds.jose
Interface JWSVerifier
- All Superinterfaces:
JCAAware<JCAContext>,JOSEProvider,JWSProvider
- All Known Implementing Classes:
ECDSAVerifier,Ed25519Verifier,MACVerifier,RSASSAVerifier
JSON Web Signature (JWS) verifier.
- Version:
- 2015-04-21
- Author:
- Vladimir Dzhuvinov
-
Method Summary
Methods inherited from interface com.nimbusds.jose.jca.JCAAware
getJCAContextMethods inherited from interface com.nimbusds.jose.JWSProvider
supportedJWSAlgorithms
-
Method Details
-
verify
Verifies the specifiedsignatureof aJWS object.- Parameters:
header- The JSON Web Signature (JWS) header. Must specify a supported JWS algorithm and must not benull.signingInput- The signing input. Must not benull.signature- The signature part of the JWS object. Must not benull.- Returns:
trueif the signature was successfully verified,falseif the signature is invalid or if a critical header is neither supported nor marked for deferral to the application.- Throws:
JOSEException- If the JWS algorithm is not supported, or if signature verification failed for some other internal reason.
-