Class EncryptDataDetails.Builder
- java.lang.Object
- 
- com.oracle.bmc.keymanagement.model.EncryptDataDetails.Builder
 
- 
- Enclosing class:
- EncryptDataDetails
 
 public static class EncryptDataDetails.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description EncryptDataDetails.BuilderassociatedData(Map<String,String> associatedData)Information that can be used to provide an encryption context for the encrypted data.EncryptDataDetailsbuild()EncryptDataDetails.Buildercopy(EncryptDataDetails model)EncryptDataDetails.BuilderencryptionAlgorithm(EncryptDataDetails.EncryptionAlgorithm encryptionAlgorithm)The encryption algorithm to use to encrypt and decrypt data with a customer-managed key.EncryptDataDetails.BuilderkeyId(String keyId)The OCID of the key to encrypt with.EncryptDataDetails.BuilderkeyVersionId(String keyVersionId)The OCID of the key version used to encrypt the ciphertext.EncryptDataDetails.BuilderloggingContext(Map<String,String> loggingContext)Information that provides context for audit logging.EncryptDataDetails.Builderplaintext(String plaintext)The plaintext data to encrypt.
 
- 
- 
- 
Method Detail- 
associatedDatapublic EncryptDataDetails.Builder associatedData(Map<String,String> associatedData) 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. - Parameters:
- associatedData- the value to set
- Returns:
- this builder
 
 - 
keyIdpublic EncryptDataDetails.Builder keyId(String keyId) The OCID of the key to encrypt with.- Parameters:
- keyId- the value to set
- Returns:
- this builder
 
 - 
loggingContextpublic EncryptDataDetails.Builder loggingContext(Map<String,String> loggingContext) 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. - Parameters:
- loggingContext- the value to set
- Returns:
- this builder
 
 - 
plaintextpublic EncryptDataDetails.Builder plaintext(String plaintext) The plaintext data to encrypt.- Parameters:
- plaintext- the value to set
- Returns:
- this builder
 
 - 
keyVersionIdpublic EncryptDataDetails.Builder keyVersionId(String keyVersionId) The OCID of the key version used to encrypt the ciphertext.- Parameters:
- keyVersionId- the value to set
- Returns:
- this builder
 
 - 
encryptionAlgorithmpublic EncryptDataDetails.Builder encryptionAlgorithm(EncryptDataDetails.EncryptionAlgorithm encryptionAlgorithm) The encryption algorithm to use to encrypt and 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. - Parameters:
- encryptionAlgorithm- the value to set
- Returns:
- this builder
 
 - 
buildpublic EncryptDataDetails build() 
 - 
copypublic EncryptDataDetails.Builder copy(EncryptDataDetails model) 
 
- 
 
-