public final class AsyncHttpsJwksVerificationKeyResolver extends Object implements CloseableVerificationKeyResolver
JsonWebKeySet
.
If an entry exists matching a supplied JsonWebSignature
this class returns the Key
which can
be used to validate the signature.Constructor and Description |
---|
AsyncHttpsJwksVerificationKeyResolver(AsyncHttpsJwks httpsJwks) |
AsyncHttpsJwksVerificationKeyResolver(AsyncHttpsJwks httpsJwks,
boolean disambiguateKey) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Key |
resolveKey(org.jose4j.jws.JsonWebSignature jws,
List<org.jose4j.jwx.JsonWebStructure> nestingContext) |
public AsyncHttpsJwksVerificationKeyResolver(AsyncHttpsJwks httpsJwks)
public AsyncHttpsJwksVerificationKeyResolver(AsyncHttpsJwks httpsJwks, boolean disambiguateKey)
public Key resolveKey(org.jose4j.jws.JsonWebSignature jws, List<org.jose4j.jwx.JsonWebStructure> nestingContext) throws org.jose4j.lang.UnresolvableKeyException
resolveKey
in interface org.jose4j.keys.resolvers.VerificationKeyResolver
org.jose4j.lang.UnresolvableKeyException
public void close()
close
in interface Closeable
close
in interface AutoCloseable