Class JWKSetJwksSignature
java.lang.Object
io.micronaut.security.token.jwt.signature.jwks.JWKSetJwksSignature
- All Implemented Interfaces:
SignatureConfiguration
- Direct Known Subclasses:
StaticJwksSignature
SignatureConfiguration
backed by a JWKSet
.-
Constructor Summary
ConstructorDescriptionJWKSetJwksSignature
(JwkValidator jwkValidator, com.nimbusds.jose.jwk.JWKSet jwkSet) -
Method Summary
-
Constructor Details
-
JWKSetJwksSignature
-
-
Method Details
-
supportedAlgorithmsMessage
- Specified by:
supportedAlgorithmsMessage
in interfaceSignatureConfiguration
- Returns:
- A message indicating the supported algorithms.
-
supports
public boolean supports(com.nimbusds.jose.JWSAlgorithm algorithm) Whether this signature configuration supports this algorithm.- Specified by:
supports
in interfaceSignatureConfiguration
- Parameters:
algorithm
- the signature algorithm- Returns:
- whether this signature configuration supports this algorithm
-
verify
public boolean verify(com.nimbusds.jwt.SignedJWT jwt) throws com.nimbusds.jose.JOSEException Description copied from interface:SignatureConfiguration
Verify a signed JWT.- Specified by:
verify
in interfaceSignatureConfiguration
- Parameters:
jwt
- the signed JWT- Returns:
- whether the signed JWT is verified
- Throws:
com.nimbusds.jose.JOSEException
- exception when verifying the JWT
-