Class ResourceRetrieverJwksClient

java.lang.Object
io.micronaut.security.token.jwt.signature.jwks.ResourceRetrieverJwksClient
All Implemented Interfaces:
JwksClient

@Singleton @Secondary public class ResourceRetrieverJwksClient extends Object implements JwksClient
Implementation of JwksClient that uses the Nimbus library's built-in com.nimbusds.jose.util.ResourceRetriever interface.
Since:
4.5.0
Author:
Jeremy Grelle
  • Constructor Details

    • ResourceRetrieverJwksClient

      @Inject public ResourceRetrieverJwksClient(@Named("blocking") ExecutorService executorService)
    • ResourceRetrieverJwksClient

      public ResourceRetrieverJwksClient(reactor.core.scheduler.Scheduler scheduler)
  • Method Details

    • load

      @SingleResult public org.reactivestreams.Publisher<String> load(String providerName, String url)
      Description copied from interface: JwksClient
      Loads remote Json Web Key Set content over http.
      Specified by:
      load in interface JwksClient
      Parameters:
      providerName - The jwks provider name
      url - The URL for loading the remote JWK Set
      Returns:
      The JWK Set response body content