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.VerificationKeyResolver
org.jose4j.lang.UnresolvableKeyException
public void close()
close
in interface Closeable
close
in interface AutoCloseable