Class JWKSetJwksSignature

    • Method Summary

      All Methods Instance Methods Concrete 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JWKSetJwksSignature

        public JWKSetJwksSignature​(JwkValidator jwkValidator,
                                   com.nimbusds.jose.jwk.JWKSet jwkSet)
    • Method Detail

      • supports

        public boolean supports​(com.nimbusds.jose.JWSAlgorithm algorithm)
        Whether this signature configuration supports this algorithm.
        Specified by:
        supports in interface SignatureConfiguration
        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 interface SignatureConfiguration
        Parameters:
        jwt - the signed JWT
        Returns:
        whether the signed JWT is verified
        Throws:
        com.nimbusds.jose.JOSEException - exception when verifying the JWT