public static interface GenerateDataKeyResponse.Builder extends KMSResponse.Builder, CopyableBuilder<GenerateDataKeyResponse.Builder,GenerateDataKeyResponse>
Modifier and Type | Method and Description |
---|---|
GenerateDataKeyResponse.Builder |
ciphertextBlob(ByteBuffer ciphertextBlob)
The encrypted data encryption key.
|
GenerateDataKeyResponse.Builder |
keyId(String keyId)
The identifier of the CMK under which the data encryption key was generated and encrypted.
|
GenerateDataKeyResponse.Builder |
plaintext(ByteBuffer plaintext)
The data encryption key.
|
build
copy
apply, build
GenerateDataKeyResponse.Builder ciphertextBlob(ByteBuffer ciphertextBlob)
The encrypted data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not encoded.
To preserve immutability, the remaining bytes in the provided buffer will be copied into a new buffer when set.
ciphertextBlob
- The encrypted data encryption key. When you use the HTTP API or the AWS CLI, the value is
Base64-encoded. Otherwise, it is not encoded.GenerateDataKeyResponse.Builder plaintext(ByteBuffer plaintext)
The data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not encoded. Use this data key for local encryption and decryption, then remove it from memory as soon as possible.
To preserve immutability, the remaining bytes in the provided buffer will be copied into a new buffer when set.
plaintext
- The data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded.
Otherwise, it is not encoded. Use this data key for local encryption and decryption, then remove it
from memory as soon as possible.GenerateDataKeyResponse.Builder keyId(String keyId)
The identifier of the CMK under which the data encryption key was generated and encrypted.
keyId
- The identifier of the CMK under which the data encryption key was generated and encrypted.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.