Class RSASignature
java.lang.Object
io.micronaut.security.token.jwt.signature.AbstractSignatureConfiguration
io.micronaut.security.token.jwt.signature.rsa.RSASignature
- All Implemented Interfaces:
SignatureConfiguration
- Direct Known Subclasses:
RSASignatureGenerator
RSA signature.
- Since:
- 1.0
- Author:
- Sergio del Amo
- See Also:
-
Field Summary
Fields inherited from class io.micronaut.security.token.jwt.signature.AbstractSignatureConfiguration
algorithm
-
Constructor Summary
-
Method Summary
Methods inherited from class io.micronaut.security.token.jwt.signature.AbstractSignatureConfiguration
getAlgorithm, setAlgorithm
-
Constructor Details
-
RSASignature
- Parameters:
config
- Instance ofRSASignatureConfiguration
-
-
Method Details
-
supportedAlgorithmsMessage
- Returns:
- message explaining the supported algorithms
-
supports
public boolean supports(com.nimbusds.jose.JWSAlgorithm algorithm) Description copied from interface:SignatureConfiguration
Whether this signature configuration supports this algorithm.- 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.- Parameters:
jwt
- the signed JWT- Returns:
- whether the signed JWT is verified
- Throws:
com.nimbusds.jose.JOSEException
- exception when verifying the JWT
-