Interface JwksCache
-
- All Known Implementing Classes:
JwksSignature
public interface JwksCacheDesignates a class which caches a Json Web Key Set which may typically be fetched from a remote authorization server.- Since:
- 3.2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Clears the JWK Set cache.java.util.Optional<java.util.List<java.lang.String>>getKeyIds()booleanisExpired()booleanisPresent()
-
-
-
Method Detail
-
isPresent
boolean isPresent()
- Returns:
- Whether the cache has been populated.
-
isExpired
boolean isExpired()
- Returns:
- Whether the cache is expired or empty optional if JWKS still not cached
-
clear
void clear()
Clears the JWK Set cache.
-
getKeyIds
@NonNull java.util.Optional<java.util.List<java.lang.String>> getKeyIds()
-
-