Interface CBORX509Decrypter.KeyLocator

Enclosing class:
CBORX509Decrypter

public static interface CBORX509Decrypter.KeyLocator
Decrypter private key locator.
  • 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 object
      keyEncryptionAlgorithm - The requested key encryption algorithm
      contentEncryptionAlgorithm - The requested content encryption algorithm
      Returns:
      Private decryption key.