Interface SignatureConfiguration
-
- All Known Subinterfaces:
SignatureGeneratorConfiguration
- All Known Implementing Classes:
AbstractSignatureConfiguration
,ECSignature
,ECSignatureGenerator
,JwksSignature
,RSASignature
,RSASignatureGenerator
,SecretSignature
public interface SignatureConfiguration
Signature configuration.- Since:
- 1.0
- Author:
- Sergio del Amo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
supportedAlgorithmsMessage
java.lang.String supportedAlgorithmsMessage()
- Returns:
- A message indicating the supported algorithms.
-
supports
boolean supports(com.nimbusds.jose.JWSAlgorithm algorithm)
Whether this signature configuration supports this algorithm.- Parameters:
algorithm
- the signature algorithm- Returns:
- whether this signature configuration supports this algorithm
-
verify
boolean verify(com.nimbusds.jwt.SignedJWT jwt) throws com.nimbusds.jose.JOSEException
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
-
-