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>,java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
CachingJWKSetSource,JWKSetSourceWithHealthStatusReporting,OutageTolerantJWKSetSource,RateLimitedJWKSetSource,RetryingJWKSetSource
public abstract class JWKSetSourceWrapper<C extends SecurityContext> extends java.lang.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 voidclose()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 java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-