Package com.nimbusds.jose
Interface JWSVerifier
-
- All Superinterfaces:
JCAAware<JCAContext>,JOSEProvider,JWSProvider
- All Known Implementing Classes:
ECDSAVerifier,Ed25519Verifier,MACVerifier,RSASSAVerifier
public interface JWSVerifier extends JWSProvider
JSON Web Signature (JWS) verifier.- Version:
- 2015-04-21
- Author:
- Vladimir Dzhuvinov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanverify(JWSHeader header, byte[] signingInput, Base64URL signature)Verifies the specifiedsignatureof aJWS object.-
Methods inherited from interface com.nimbusds.jose.jca.JCAAware
getJCAContext
-
Methods inherited from interface com.nimbusds.jose.JWSProvider
supportedJWSAlgorithms
-
-
-
-
Method Detail
-
verify
boolean verify(JWSHeader header, byte[] signingInput, Base64URL signature) throws JOSEException
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.
-
-