public static class GeneratedKey.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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”. |
public GeneratedKey.Builder ciphertext(String ciphertext)
The encrypted data encryption key generated from a master encryption key.
ciphertext
- the value to setpublic 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”.
plaintext
- the value to setpublic 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”.
plaintextChecksum
- the value to setpublic GeneratedKey build()
public GeneratedKey.Builder copy(GeneratedKey model)
Copyright © 2016–2024. All rights reserved.