public interface DecryptionKeyResolver
| 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.
|
Key resolveKey(JsonWebEncryption jwe, List<JsonWebStructure> nestingContext) throws UnresolvableKeyException
jwe - 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 © 2020. All rights reserved.