public final class PublicKeyVerificationKeyResolver 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 |
|---|
PublicKeyVerificationKeyResolver(List<org.jose4j.jwk.JsonWebKey> jwks) |
PublicKeyVerificationKeyResolver(PublicKeyJwks jwks) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Key |
resolveKey(org.jose4j.jws.JsonWebSignature jws,
List<org.jose4j.jwx.JsonWebStructure> nestingContext) |
public PublicKeyVerificationKeyResolver(PublicKeyJwks jwks)
public PublicKeyVerificationKeyResolver(List<org.jose4j.jwk.JsonWebKey> jwks)
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.VerificationKeyResolverorg.jose4j.lang.UnresolvableKeyExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseable