Interface SignatureConfiguration
-
- All Known Subinterfaces:
SignatureGeneratorConfiguration
- All Known Implementing Classes:
AbstractSignatureConfiguration,ECSignature,ECSignatureGenerator,JwksSignature,RSASignature,RSASignatureGenerator,SecretSignature
public interface SignatureConfigurationSignature configuration.- Since:
- 1.0
- Author:
- Sergio del Amo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringsupportedAlgorithmsMessage()booleansupports(com.nimbusds.jose.JWSAlgorithm algorithm)Whether this signature configuration supports this algorithm.booleanverify(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.JOSEExceptionVerify 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
-
-