DecryptDataDetails

class oci.key_management.models.DecryptDataDetails(**kwargs)

Bases: object

The details of the encrypted data that you want to decrypt.

Attributes

ENCRYPTION_ALGORITHM_AES_256_GCM A constant which can be used with the encryption_algorithm property of a DecryptDataDetails.
ENCRYPTION_ALGORITHM_RSA_OAEP_SHA_1 A constant which can be used with the encryption_algorithm property of a DecryptDataDetails.
ENCRYPTION_ALGORITHM_RSA_OAEP_SHA_256 A constant which can be used with the encryption_algorithm property of a DecryptDataDetails.
associated_data Gets the associated_data of this DecryptDataDetails.
ciphertext [Required] Gets the ciphertext of this DecryptDataDetails.
encryption_algorithm Gets the encryption_algorithm of this DecryptDataDetails.
key_id [Required] Gets the key_id of this DecryptDataDetails.
key_version_id Gets the key_version_id of this DecryptDataDetails.
logging_context Gets the logging_context of this DecryptDataDetails.

Methods

__init__(**kwargs) Initializes a new DecryptDataDetails object with values from keyword arguments.
ENCRYPTION_ALGORITHM_AES_256_GCM = 'AES_256_GCM'

A constant which can be used with the encryption_algorithm property of a DecryptDataDetails. This constant has a value of “AES_256_GCM”

ENCRYPTION_ALGORITHM_RSA_OAEP_SHA_1 = 'RSA_OAEP_SHA_1'

A constant which can be used with the encryption_algorithm property of a DecryptDataDetails. This constant has a value of “RSA_OAEP_SHA_1”

ENCRYPTION_ALGORITHM_RSA_OAEP_SHA_256 = 'RSA_OAEP_SHA_256'

A constant which can be used with the encryption_algorithm property of a DecryptDataDetails. This constant has a value of “RSA_OAEP_SHA_256”

__init__(**kwargs)

Initializes a new DecryptDataDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • associated_data (dict(str, str)) – The value to assign to the associated_data property of this DecryptDataDetails.
  • ciphertext (str) – The value to assign to the ciphertext property of this DecryptDataDetails.
  • key_id (str) – The value to assign to the key_id property of this DecryptDataDetails.
  • logging_context (dict(str, str)) – The value to assign to the logging_context property of this DecryptDataDetails.
  • key_version_id (str) – The value to assign to the key_version_id property of this DecryptDataDetails.
  • encryption_algorithm (str) – The value to assign to the encryption_algorithm property of this DecryptDataDetails. Allowed values for this property are: “AES_256_GCM”, “RSA_OAEP_SHA_1”, “RSA_OAEP_SHA_256”
associated_data

Gets the associated_data of this DecryptDataDetails. Information that can be used to provide an encryption context for the encrypted data. The length of the string representation of the associated data must be fewer than 4096 characters.

Returns:The associated_data of this DecryptDataDetails.
Return type:dict(str, str)
ciphertext

[Required] Gets the ciphertext of this DecryptDataDetails. The encrypted data to decrypt.

Returns:The ciphertext of this DecryptDataDetails.
Return type:str
encryption_algorithm

Gets the encryption_algorithm of this DecryptDataDetails. The encryption algorithm to use to encrypt or decrypt data with a customer-managed key. AES_256_GCM indicates that the key is a symmetric key that uses the Advanced Encryption Standard (AES) algorithm and that the mode of encryption is the Galois/Counter Mode (GCM). RSA_OAEP_SHA_1 indicates that the key is an asymmetric key that uses the RSA encryption algorithm and uses Optimal Asymmetric Encryption Padding (OAEP). RSA_OAEP_SHA_256 indicates that the key is an asymmetric key that uses the RSA encryption algorithm with a SHA-256 hash and uses OAEP.

Allowed values for this property are: “AES_256_GCM”, “RSA_OAEP_SHA_1”, “RSA_OAEP_SHA_256”

Returns:The encryption_algorithm of this DecryptDataDetails.
Return type:str
key_id

[Required] Gets the key_id of this DecryptDataDetails. The OCID of the key used to encrypt the ciphertext.

Returns:The key_id of this DecryptDataDetails.
Return type:str
key_version_id

Gets the key_version_id of this DecryptDataDetails. The OCID of the key version used to encrypt the ciphertext.

Returns:The key_version_id of this DecryptDataDetails.
Return type:str
logging_context

Gets the logging_context of this DecryptDataDetails. Information that provides context for audit logging. You can provide this additional data as key-value pairs to include in audit logs when audit logging is enabled.

Returns:The logging_context of this DecryptDataDetails.
Return type:dict(str, str)