public class GenerateDataKeyResult extends Object implements Serializable
| Constructor and Description |
|---|
GenerateDataKeyResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ByteBuffer |
getCiphertextBlob()
The encrypted data encryption key.
|
String |
getKeyId()
The identifier of the CMK under which the data encryption key was
generated and encrypted.
|
ByteBuffer |
getPlaintext()
The data encryption key.
|
int |
hashCode() |
void |
setCiphertextBlob(ByteBuffer ciphertextBlob)
The encrypted data encryption key.
|
void |
setKeyId(String keyId)
The identifier of the CMK under which the data encryption key was
generated and encrypted.
|
void |
setPlaintext(ByteBuffer plaintext)
The data encryption key.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GenerateDataKeyResult |
withCiphertextBlob(ByteBuffer ciphertextBlob)
The encrypted data encryption key.
|
GenerateDataKeyResult |
withKeyId(String keyId)
The identifier of the CMK under which the data encryption key was
generated and encrypted.
|
GenerateDataKeyResult |
withPlaintext(ByteBuffer plaintext)
The data encryption key.
|
public ByteBuffer getCiphertextBlob()
The encrypted data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is not encoded.
Constraints:
Length: 1 - 6144
The encrypted data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is not encoded.
public void setCiphertextBlob(ByteBuffer ciphertextBlob)
The encrypted data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is not encoded.
Constraints:
Length: 1 - 6144
ciphertextBlob - The encrypted data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is not encoded.
public GenerateDataKeyResult withCiphertextBlob(ByteBuffer ciphertextBlob)
The encrypted data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is not encoded.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 6144
ciphertextBlob - The encrypted data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is not encoded.
public ByteBuffer getPlaintext()
The data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is not encoded. Use this data key for local encryption and decryption, then remove it from memory as soon as possible.
Constraints:
Length: 1 - 4096
The data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is not encoded. Use this data key for local encryption and decryption, then remove it from memory as soon as possible.
public void setPlaintext(ByteBuffer plaintext)
The data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is not encoded. Use this data key for local encryption and decryption, then remove it from memory as soon as possible.
Constraints:
Length: 1 - 4096
plaintext - The data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is not encoded. Use this data key for local encryption and decryption, then remove it from memory as soon as possible.
public GenerateDataKeyResult withPlaintext(ByteBuffer plaintext)
The data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is not encoded. Use this data key for local encryption and decryption, then remove it from memory as soon as possible.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 4096
plaintext - The data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is not encoded. Use this data key for local encryption and decryption, then remove it from memory as soon as possible.
public String getKeyId()
The identifier of the CMK under which the data encryption key was generated and encrypted.
Constraints:
Length: 1 - 2048
The identifier of the CMK under which the data encryption key was generated and encrypted.
public void setKeyId(String keyId)
The identifier of the CMK under which the data encryption key was generated and encrypted.
Constraints:
Length: 1 - 2048
keyId - The identifier of the CMK under which the data encryption key was generated and encrypted.
public GenerateDataKeyResult withKeyId(String keyId)
The identifier of the CMK under which the data encryption key was generated and encrypted.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2048
keyId - The identifier of the CMK under which the data encryption key was generated and encrypted.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.