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 Optional<T>
    fetch(@Nullable String url)
     
  • Method Details

    • fetch

      @NonNull @NonNull Optional<T> fetch(@Nullable @Nullable String url)
      Parameters:
      url - The Jwks uri
      Returns:
      The Json Web Key Set representation or an empty optional if it could not be loaded
    • clearCache

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