Class EncryptDataDetails
The details of the plaintext data that you want to encrypt.
Inherited Members
Namespace: Oci.KeymanagementService.Models
Assembly: OCI.DotNetSDK.Keymanagement.dll
Syntax
public class EncryptDataDetails
Properties
AssociatedData
Declaration
[JsonProperty(PropertyName = "associatedData")]
public Dictionary<string, string> AssociatedData { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> | 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. |
EncryptionAlgorithm
Declaration
[JsonProperty(PropertyName = "encryptionAlgorithm")]
[JsonConverter(typeof(StringEnumConverter))]
public EncryptDataDetails.EncryptionAlgorithmEnum? EncryptionAlgorithm { get; set; }
Property Value
Type | Description |
---|---|
EncryptDataDetails.EncryptionAlgorithmEnum? | The encryption algorithm to use to encrypt and decrypt data with a customer-managed key.
|
KeyId
Declaration
[Required(ErrorMessage = "KeyId is required.")]
[JsonProperty(PropertyName = "keyId")]
public string KeyId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the key to encrypt with. |
Remarks
Required
KeyVersionId
Declaration
[JsonProperty(PropertyName = "keyVersionId")]
public string KeyVersionId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the key version used to encrypt the ciphertext. |
LoggingContext
Declaration
[JsonProperty(PropertyName = "loggingContext")]
public Dictionary<string, string> LoggingContext { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> | Information that provides context for audit logging. You can provide this additional data as key-value pairs to include in the audit logs when audit logging is enabled. |
Plaintext
Declaration
[Required(ErrorMessage = "Plaintext is required.")]
[JsonProperty(PropertyName = "plaintext")]
public string Plaintext { get; set; }
Property Value
Type | Description |
---|---|
string | The plaintext data to encrypt. |
Remarks
Required