public class JwksDecryptionKeyResolver extends Object implements DecryptionKeyResolver
| Constructor and Description |
|---|
JwksDecryptionKeyResolver(List<JsonWebKey> jsonWebKeys) |
| Modifier and Type | Method and Description |
|---|---|
Key |
resolveKey(JsonWebEncryption jwe,
List<JsonWebStructure> nestingContext)
Choose the key to be used for decryption on the given JWE.
|
public JwksDecryptionKeyResolver(List<JsonWebKey> jsonWebKeys)
public Key resolveKey(JsonWebEncryption jwe, List<JsonWebStructure> nestingContext) throws UnresolvableKeyException
DecryptionKeyResolverresolveKey in interface DecryptionKeyResolverjwe - the JsonWebEncryption that's about to be decryptednestingContext - a list of JOSE objects, if any, in which the JWE was nested.
The last item in the list is the outer most JOSE object (not including the current JWE).UnresolvableKeyException - if no appropriate key can be foundCopyright © 2018. All rights reserved.