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)
    Deprecated, for removal: This API element is subject to removal in a future version.
    default @NonNull org.reactivestreams.Publisher<T>
    fetch(@Nullable String providerName, @Nullable String url)
     
  • Method Details

    • fetch

      @NonNull @Deprecated(forRemoval=true, since="4.5.0") @NonNull Optional<T> fetch(@Nullable @Nullable String url)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      url - The Jwks uri
      Returns:
      The Json Web Key Set representation or an empty optional if it could not be loaded
    • fetch

      @NonNull @SingleResult default @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