@Internal public class JWKSetJwksSignature extends java.lang.Object implements SignatureConfiguration
SignatureConfiguration
backed by a JWKSet
.Constructor and Description |
---|
JWKSetJwksSignature(JwkValidator jwkValidator,
com.nimbusds.jose.jwk.JWKSet jwkSet) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
supportedAlgorithmsMessage() |
boolean |
supports(com.nimbusds.jose.JWSAlgorithm algorithm)
Whether this signature configuration supports this algorithm.
|
boolean |
verify(com.nimbusds.jwt.SignedJWT jwt)
Verify a signed JWT.
|
public JWKSetJwksSignature(JwkValidator jwkValidator, com.nimbusds.jose.jwk.JWKSet jwkSet)
public java.lang.String supportedAlgorithmsMessage()
supportedAlgorithmsMessage
in interface SignatureConfiguration
public boolean supports(com.nimbusds.jose.JWSAlgorithm algorithm)
supports
in interface SignatureConfiguration
algorithm
- the signature algorithmpublic boolean verify(com.nimbusds.jwt.SignedJWT jwt) throws com.nimbusds.jose.JOSEException
SignatureConfiguration
verify
in interface SignatureConfiguration
jwt
- the signed JWTcom.nimbusds.jose.JOSEException
- exception when verifying the JWT