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 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.