public static class EncryptedData.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
EncryptedData |
build() |
EncryptedData.Builder |
ciphertext(String ciphertext)
The encrypted data.
|
EncryptedData.Builder |
copy(EncryptedData model) |
EncryptedData.Builder |
encryptionAlgorithm(EncryptedData.EncryptionAlgorithm encryptionAlgorithm)
The encryption algorithm to use to encrypt and decrypt data with a customer-managed key.
|
EncryptedData.Builder |
keyId(String keyId)
The OCID of the key used to encrypt the ciphertext.
|
EncryptedData.Builder |
keyVersionId(String keyVersionId)
The OCID of the key version used to encrypt the ciphertext.
|
public EncryptedData.Builder ciphertext(String ciphertext)
The encrypted data.
ciphertext
- the value to setpublic EncryptedData.Builder keyId(String keyId)
The OCID of the key used to encrypt the ciphertext.
keyId
- the value to setpublic EncryptedData.Builder keyVersionId(String keyVersionId)
The OCID of the key version used to encrypt the ciphertext.
keyVersionId
- the value to setpublic 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.
encryptionAlgorithm
- the value to setpublic EncryptedData build()
public EncryptedData.Builder copy(EncryptedData model)
Copyright © 2016–2024. All rights reserved.