Package org.webpki.cbor
Interface CBORSymKeyDecrypter.KeyLocator
- Enclosing class:
CBORSymKeyDecrypter
public static interface CBORSymKeyDecrypter.KeyLocator
Interface for dynamic key retrieval.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
locate
(CBORObject optionalKeyId, ContentEncryptionAlgorithms contentEncryptionAlgorithm) Lookup of secret decryption key.
-
Method Details
-
locate
Lookup of secret decryption key.An implementation is supposed to throw an exception if it does not find a matching key or if the supplied algorithm does not meet the policy.
- Parameters:
optionalKeyId
- Optional key Id found in the encryption objectcontentEncryptionAlgorithm
- The requested content encryption algorithm- Returns:
- Decryption key
-