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
JSON Web Key (JWK) set source.
- Version:
- 2022-11-22
- Author:
- Thomas Rørvik Skjølberg, Vladimir Dzhuvinov
-
Method Summary
Modifier and TypeMethodDescriptiongetJWKSet
(JWKSetCacheRefreshEvaluator refreshEvaluator, long currentTime, C context) Gets the JWK set.
-
Method Details
-
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,null
if not required.- Returns:
- The JWK set.
- Throws:
KeySourceException
- If JWK set retrieval failed.
-