Package org.webpki.cbor
Interface CBORX509Decrypter.KeyLocator
- Enclosing class:
CBORX509Decrypter
public static interface CBORX509Decrypter.KeyLocator
Decrypter private key locator.
-
Method Summary
Modifier and TypeMethodDescriptionlocate
(X509Certificate[] certificatePath, KeyEncryptionAlgorithms keyEncryptionAlgorithm, ContentEncryptionAlgorithms contentEncryptionAlgorithm) Locate private decryption key.
-
Method Details
-
locate
PrivateKey locate(X509Certificate[] certificatePath, 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:
certificatePath
- Certificate path in the encryption objectkeyEncryptionAlgorithm
- The requested key encryption algorithmcontentEncryptionAlgorithm
- The requested content encryption algorithm- Returns:
- Private decryption key.
-