Package org.webpki.cbor
Interface CBORAsymKeyDecrypter.KeyLocator
- Enclosing class:
CBORAsymKeyDecrypter
public static interface CBORAsymKeyDecrypter.KeyLocator
Decrypter private key locator.
-
Method Summary
Modifier and TypeMethodDescriptionlocate
(PublicKey optionalPublicKey, CBORObject optionalKeyId, KeyEncryptionAlgorithms keyEncryptionAlgorithm, ContentEncryptionAlgorithms contentEncryptionAlgorithm) Locate private decryption key.
-
Method Details
-
locate
PrivateKey locate(PublicKey optionalPublicKey, CBORObject optionalKeyId, KeyEncryptionAlgorithms keyEncryptionAlgorithm, ContentEncryptionAlgorithms contentEncryptionAlgorithm) Locate private decryption key.Uses the Java crypto provider system.
Implementations must throw
CryptoException
for errors related to cryptography and security.This interface also enables encryption parameter verification.
- Parameters:
optionalPublicKey
- Defined it provided in the CEF objectoptionalKeyId
- Defined it provided in the CEF objectkeyEncryptionAlgorithm
- The requested key encryption algorithmcontentEncryptionAlgorithm
- The requested content encryption algorithm- Returns:
- Private decryption key.
-