Interface JwkSetFetcher<T>
- Type Parameters:
T
- Json Web Key Set type
- All Known Implementing Classes:
DefaultJwkSetFetcher
Fetch a Json Web Key Set by a given url.
- Since:
- 3.9.0
- Author:
- Sergio del Amo
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearCache
(String url) Deprecated, for removal: This API element is subject to removal in a future version.default @NonNull org.reactivestreams.Publisher<T>
-
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.Usefetch(String, String)
instead.- 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 nameurl
- 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
- Parameters:
url
- The Jwks uri Clears cache
-
fetch(String, String)
instead.