Class AsyncHttpsJwksVerificationKeyResolver
java.lang.Object
io.confluent.kafka.clients.plugins.auth.jwt.AsyncHttpsJwksVerificationKeyResolver
- All Implemented Interfaces:
CloseableVerificationKeyResolver,Closeable,AutoCloseable,org.jose4j.keys.resolvers.VerificationKeyResolver
public final class AsyncHttpsJwksVerificationKeyResolver
extends Object
implements CloseableVerificationKeyResolver
AsyncHttpsJwksVerificationKeyResolver asynchronously maintains a
JsonWebKeySet.
If an entry exists matching a supplied JsonWebSignature this class returns the Key which can
be used to validate the signature.-
Constructor Summary
ConstructorsConstructorDescriptionAsyncHttpsJwksVerificationKeyResolver(AsyncHttpsJwks httpsJwks, boolean disambiguateKey) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()resolveKey(org.jose4j.jws.JsonWebSignature jws, List<org.jose4j.jwx.JsonWebStructure> nestingContext)
-
Constructor Details
-
AsyncHttpsJwksVerificationKeyResolver
-
AsyncHttpsJwksVerificationKeyResolver
-
-
Method Details
-
resolveKey
public Key resolveKey(org.jose4j.jws.JsonWebSignature jws, List<org.jose4j.jwx.JsonWebStructure> nestingContext) throws org.jose4j.lang.UnresolvableKeyException - Specified by:
resolveKeyin interfaceorg.jose4j.keys.resolvers.VerificationKeyResolver- Throws:
org.jose4j.lang.UnresolvableKeyException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-