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
    • Method Detail

      • fetch

        @NonNull
        java.util.Optional<T> fetch​(@Nullable
                                    java.lang.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​(java.lang.String url)
        Parameters:
        url - The Jwks uri Clears cache