Class EncryptedData.Builder
- java.lang.Object
-
- com.oracle.bmc.keymanagement.model.EncryptedData.Builder
-
- Enclosing class:
- EncryptedData
public static class EncryptedData.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EncryptedDatabuild()EncryptedData.Builderciphertext(String ciphertext)The encrypted data.EncryptedData.Buildercopy(EncryptedData model)EncryptedData.BuilderencryptionAlgorithm(EncryptedData.EncryptionAlgorithm encryptionAlgorithm)The encryption algorithm to use to encrypt and decrypt data with a customer-managed key.EncryptedData.BuilderkeyId(String keyId)The OCID of the key used to encrypt the ciphertext.EncryptedData.BuilderkeyVersionId(String keyVersionId)The OCID of the key version used to encrypt the ciphertext.
-
-
-
Method Detail
-
ciphertext
public EncryptedData.Builder ciphertext(String ciphertext)
The encrypted data.- Parameters:
ciphertext- the value to set- Returns:
- this builder
-
keyId
public EncryptedData.Builder keyId(String keyId)
The OCID of the key used to encrypt the ciphertext.- Parameters:
keyId- the value to set- Returns:
- this builder
-
keyVersionId
public EncryptedData.Builder keyVersionId(String keyVersionId)
The OCID of the key version used to encrypt the ciphertext.- Parameters:
keyVersionId- the value to set- Returns:
- this builder
-
encryptionAlgorithm
public EncryptedData.Builder encryptionAlgorithm(EncryptedData.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
-
build
public EncryptedData build()
-
copy
public EncryptedData.Builder copy(EncryptedData model)
-
-