public interface JWEKeySelector<C extends SecurityContext>
decryption and further
processing.
The key selection should be based on application specific criteria, such
as recognised header parameters referencing the key (e.g. kid,
x5t) and / or the JWE object SecurityContext.
See JSON Web Signature (JWE), Appendix D. Notes on Key Selection for suggestions.
Possible key types:
SecretKey for AES keys.
RSAPrivateKey private RSA keys.
ECPrivateKey private EC keys.
| Modifier and Type | Method and Description |
|---|---|
List<? extends Key> |
selectJWEKeys(JWEHeader header,
C context)
Selects key candidates for decrypting a JWE object.
|
List<? extends Key> selectJWEKeys(JWEHeader header, C context)
header - The header of the JWE object. Must not be
null.context - Optional context of the JWE object, null if
not required.Copyright © 2015 Connect2id Ltd.. All Rights Reserved.