Class ReactiveJwksSignature

java.lang.Object
io.micronaut.security.token.jwt.nimbus.ReactiveJwksSignature
All Implemented Interfaces:
ReactiveSignatureConfiguration<com.nimbusds.jwt.SignedJWT>

@EachBean(JwksSignatureConfiguration.class) public class ReactiveJwksSignature extends Object implements ReactiveSignatureConfiguration<com.nimbusds.jwt.SignedJWT>
Signature configuration which enables verification of remote JSON Web Key Set. A bean of this class is created for each JwksSignatureConfiguration.
Since:
4.8.0
Author:
Sergio del Amo
  • Constructor Details

    • ReactiveJwksSignature

      public ReactiveJwksSignature(JwksSignatureConfiguration jwksSignatureConfiguration, JwkValidator jwkValidator, JwkSetFetcher<com.nimbusds.jose.jwk.JWKSet> jwkSetFetcher)
      Parameters:
      jwksSignatureConfiguration - JSON Web Key Set configuration.
      jwkValidator - JWK Validator to be used.
      jwkSetFetcher - Json Web Key Set fetcher
  • Method Details

    • verify

      @SingleResult public org.reactivestreams.Publisher<Boolean> verify(com.nimbusds.jwt.SignedJWT jwt)
      Verify a signed JWT.
      Specified by:
      verify in interface ReactiveSignatureConfiguration<com.nimbusds.jwt.SignedJWT>
      Parameters:
      jwt - the signed JWT
      Returns:
      whether the signed JWT is verified