Interface JwkSetFetcher<T>

Type Parameters:
T - Json Web Key Set type
All Known Implementing Classes:
DefaultJwkSetFetcher

@DefaultImplementation(DefaultJwkSetFetcher.class) public interface JwkSetFetcher<T>
Fetch a Json Web Key Set by a given url.
Since:
3.9.0
Author:
Sergio del Amo
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    @NonNull org.reactivestreams.Publisher<T>
    fetch(@Nullable String providerName, @Nullable String url)
     
  • Method Details

    • fetch

      @NonNull @SingleResult @NonNull org.reactivestreams.Publisher<T> fetch(@Nullable @Nullable String providerName, @Nullable @Nullable String url)
      Parameters:
      providerName - The jwks provider name
      url - The Jwks uri
      Returns:
      The Json Web Key Set representation or an empty optional if it could not be loaded
      Since:
      4.5.0
    • clearCache

      void clearCache(String url)
      Parameters:
      url - The Jwks uri Clears cache