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 Summary
Constructors Constructor Description JWKSetSourceWrapper(JWKSetSource<C> source)
Creates a new JWK set wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
JWKSetSource<C>
getSource()
Returns the wrapped JWK set source.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.nimbusds.jose.jwk.source.JWKSetSource
getJWKSet
-
-
-
-
Constructor Detail
-
JWKSetSourceWrapper
public JWKSetSourceWrapper(JWKSetSource<C> source)
Creates a new JWK set wrapper.- Parameters:
source
- The JWK set source to wrap. Must not benull
.
-
-
Method Detail
-
getSource
public JWKSetSource<C> getSource()
Returns the wrapped JWK set source.- Returns:
- The wrapped Jwk set source.
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-