Interface CloseableVerificationKeyResolver
- All Superinterfaces:
AutoCloseable
,Closeable
,Initable
,org.jose4j.keys.resolvers.VerificationKeyResolver
- All Known Implementing Classes:
JwksFileVerificationKeyResolver
,RefreshingHttpsJwksVerificationKeyResolver
public interface CloseableVerificationKeyResolver
extends Initable, Closeable, org.jose4j.keys.resolvers.VerificationKeyResolver
The
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.- See Also:
-
OAuthBearerValidatorCallbackHandler
VerificationKeyResolver
Closeable
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
close()
Lifecycle method to perform a clean shutdown of theVerificationKeyResolver
.Methods inherited from interface org.jose4j.keys.resolvers.VerificationKeyResolver
resolveKey
-
Method Details
-
close
Lifecycle method to perform a clean shutdown of theVerificationKeyResolver
. This must be performed by the caller to ensure the correct state, freeing up and releasing any resources performed inInitable.init()
.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
- Thrown on errors related to IO during closure
-