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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearCache(java.lang.String url)java.util.Optional<T>fetch(java.lang.String url)
-
-
-
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
-
-