Interface CBORX509Decrypter.DecrypterImpl

Enclosing class:
CBORX509Decrypter

public static interface CBORX509Decrypter.DecrypterImpl
Decrypter engine implementation interface.
  • Method Details

    • decrypt

      byte[] decrypt(X509Certificate[] certificatePath, byte[] optionalEncryptedKey, PublicKey optionalEphemeralKey, KeyEncryptionAlgorithms keyEncryptionAlgorithm, ContentEncryptionAlgorithms contentEncryptionAlgorithm)
      Decrypt encrypted key.

      This interface assumes that the private key resides in an external hardware or software solution. The private key is either implicit or located by the optionalPublicKey or optionalKeyId parameters.

      Implementations must throw CryptoException for errors related to cryptography and security.

      Parameters:
      certificatePath - Certificate path in the encryption object
      optionalEncryptedKey - Optional encrypted key
      optionalEphemeralKey - Optional ephemeral key
      keyEncryptionAlgorithm - The requested key encryption algorithm
      contentEncryptionAlgorithm - The requested content encryption algorithm
      Returns:
      Decrypted key.