public class X509VerificationKeyResolver extends Object implements VerificationKeyResolver
| Constructor and Description |
|---|
X509VerificationKeyResolver(List<X509Certificate> certificates) |
X509VerificationKeyResolver(X509Certificate... certificates) |
| Modifier and Type | Method and Description |
|---|---|
Key |
resolveKey(JsonWebSignature jws,
List<JsonWebStructure> nestingContext)
Choose the key to be used for signature verification on the given JWS.
|
void |
setTryAllOnNoThumbHeader(boolean tryAllOnNoThumbHeader) |
public X509VerificationKeyResolver(List<X509Certificate> certificates)
public X509VerificationKeyResolver(X509Certificate... certificates)
public void setTryAllOnNoThumbHeader(boolean tryAllOnNoThumbHeader)
public Key resolveKey(JsonWebSignature jws, List<JsonWebStructure> nestingContext) throws UnresolvableKeyException
VerificationKeyResolverresolveKey in interface VerificationKeyResolverjws - the JsonWebSignature that's about to be verifiednestingContext - a list of JOSE objects, if any, in which the JWS was nested.
The last item in the list is the outer most JOSE object (not including the current JWS).UnresolvableKeyException - if no appropriate key can be foundCopyright © 2021. All rights reserved.