Class GeneratedKey.Builder
- java.lang.Object
-
- com.oracle.bmc.keymanagement.model.GeneratedKey.Builder
-
- Enclosing class:
- GeneratedKey
public static class GeneratedKey.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeneratedKey
build()
GeneratedKey.Builder
ciphertext(String ciphertext)
The encrypted data encryption key generated from a master encryption key.GeneratedKey.Builder
copy(GeneratedKey model)
GeneratedKey.Builder
plaintext(String plaintext)
The plaintext data encryption key, a base64-encoded sequence of random bytes, which is included if the GenerateDataEncryptionKey request includes the includePlaintextKey parameter and sets its value to “true”.GeneratedKey.Builder
plaintextChecksum(String plaintextChecksum)
The checksum of the plaintext data encryption key, which is included if the GenerateDataEncryptionKey request includes the includePlaintextKey parameter and sets its value to “true”.
-
-
-
Method Detail
-
ciphertext
public GeneratedKey.Builder ciphertext(String ciphertext)
The encrypted data encryption key generated from a master encryption key.- Parameters:
ciphertext
- the value to set- Returns:
- this builder
-
plaintext
public GeneratedKey.Builder plaintext(String plaintext)
The plaintext data encryption key, a base64-encoded sequence of random bytes, which is included if the GenerateDataEncryptionKey request includes the includePlaintextKey parameter and sets its value to “true”.- Parameters:
plaintext
- the value to set- Returns:
- this builder
-
plaintextChecksum
public GeneratedKey.Builder plaintextChecksum(String plaintextChecksum)
The checksum of the plaintext data encryption key, which is included if the GenerateDataEncryptionKey request includes the includePlaintextKey parameter and sets its value to “true”.- Parameters:
plaintextChecksum
- the value to set- Returns:
- this builder
-
build
public GeneratedKey build()
-
copy
public GeneratedKey.Builder copy(GeneratedKey model)
-
-