Interface CBORAsymKeyDecrypter.KeyLocator

Enclosing class:
CBORAsymKeyDecrypter

public static interface CBORAsymKeyDecrypter.KeyLocator
Decrypter private key locator.
  • 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 object
      optionalKeyId - Defined it provided in the CEF object
      keyEncryptionAlgorithm - The requested key encryption algorithm
      contentEncryptionAlgorithm - The requested content encryption algorithm
      Returns:
      Private decryption key.