Class DefaultJwkSetFetcher.Optimizations

java.lang.Object
io.micronaut.security.token.jwt.signature.jwks.DefaultJwkSetFetcher.Optimizations
Enclosing class:
DefaultJwkSetFetcher

public static class DefaultJwkSetFetcher.Optimizations extends Object
AOT Optimizations.
  • Constructor Details

    • Optimizations

      public Optimizations(@NonNull @NonNull Map<String,Supplier<com.nimbusds.jose.jwk.JWKSet>> suppliers)
      Parameters:
      suppliers - Map with key being the Jwks uri and value the Json Web Key Set.
  • Method Details

    • findJwkSet

      public Optional<Supplier<com.nimbusds.jose.jwk.JWKSet>> findJwkSet(@NonNull @NonNull String url)
      Parameters:
      url - Json Web Key Set Url
      Returns:
      a Json Web Key supplier or an empty optional if not cached
    • clear

      public void clear(@NonNull @NonNull String url)
      Parameters:
      url - Json Web Key Set Url