Package com.nimbusds.jose.jwk.source
Class JWKSetSourceWrapper<C extends SecurityContext>
java.lang.Object
com.nimbusds.jose.jwk.source.JWKSetSourceWrapper<C>
- All Implemented Interfaces:
JWKSetSource<C>
,Closeable
,AutoCloseable
- Direct Known Subclasses:
CachingJWKSetSource
,JWKSetSourceWithHealthStatusReporting
,OutageTolerantJWKSetSource
,RateLimitedJWKSetSource
,RetryingJWKSetSource
public abstract class JWKSetSourceWrapper<C extends SecurityContext>
extends Object
implements JWKSetSource<C>
Wraps a JWKSetSource to provide convenient decoration by means
of subclassing. Implements the Wrapper or Decorator pattern.
- Version:
- 2022-08-24
- Author:
- Thomas Rørvik Skjølberg, Vladimir Dzhuvinov
-
Constructor Details
-
JWKSetSourceWrapper
Creates a new JWK set wrapper.- Parameters:
source
- The JWK set source to wrap. Must not benull
.
-
-
Method Details
-
getSource
Returns the wrapped JWK set source.- Returns:
- The wrapped Jwk set source.
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-