Interface SignatureConfiguration

All Known Subinterfaces:
SignatureGeneratorConfiguration
All Known Implementing Classes:
AbstractSignatureConfiguration, ECSignature, ECSignatureGenerator, JWKSetJwksSignature, JwksSignature, RSASignature, RSASignatureGenerator, SecretSignature, StaticJwksSignature

public interface SignatureConfiguration
Signature configuration.
Since:
1.0
Author:
Sergio del Amo
  • Method Summary

    Modifier and Type
    Method
    Description
     
    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 Details

    • supportedAlgorithmsMessage

      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