Package com.nimbusds.jose.jwk.source
Interface JWKSetSource<C extends SecurityContext>
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
CachingJWKSetSource,JWKSetSourceWithHealthStatusReporting,JWKSetSourceWrapper,OutageTolerantJWKSetSource,RateLimitedJWKSetSource,RefreshAheadCachingJWKSetSource,RetryingJWKSetSource,URLBasedJWKSetSource
public interface JWKSetSource<C extends SecurityContext> extends Closeable
JSON Web Key (JWK) set source.- Version:
- 2022-11-22
- Author:
- Thomas Rørvik Skjølberg, Vladimir Dzhuvinov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JWKSetgetJWKSet(JWKSetCacheRefreshEvaluator refreshEvaluator, long currentTime, C context)Gets the JWK set.
-
-
-
Method Detail
-
getJWKSet
JWKSet getJWKSet(JWKSetCacheRefreshEvaluator refreshEvaluator, long currentTime, C context) throws KeySourceException
Gets the JWK set.- Parameters:
refreshEvaluator- Controls whether refresh of the JWK set cache (if utilised by the source) is required.currentTime- The current time, in milliseconds since the Unix epoch.context- Optional context,nullif not required.- Returns:
- The JWK set.
- Throws:
KeySourceException- If JWK set retrieval failed.
-
-