public interface CloseableVerificationKeyResolver extends Initable, Closeable, org.jose4j.keys.resolvers.VerificationKeyResolver
OAuthBearerValidatorCallbackHandler
uses a VerificationKeyResolver
as
part of its validation of the incoming JWT. Some of the VerificationKeyResolver
implementations use resources like threads, connections, etc. that should be properly closed
when no longer needed. Since the VerificationKeyResolver
interface itself doesn't
define a close
method, we provide a means to do that here.OAuthBearerValidatorCallbackHandler
,
VerificationKeyResolver
,
Closeable
Modifier and Type | Method and Description |
---|---|
default void |
close()
Lifecycle method to perform a clean shutdown of the
VerificationKeyResolver . |
default void close() throws IOException
VerificationKeyResolver
.
This must be performed by the caller to ensure the correct state, freeing up
and releasing any resources performed in Initable.init()
.close
in interface AutoCloseable
close
in interface Closeable
IOException
- Thrown on errors related to IO during closure