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 copy of the data key.
|
String |
getKeyId()
The identifier of the CMK that encrypted the data key.
|
ByteBuffer |
getPlaintext()
The plaintext data key.
|
int |
hashCode() |
void |
setCiphertextBlob(ByteBuffer ciphertextBlob)
The encrypted copy of the data key.
|
void |
setKeyId(String keyId)
The identifier of the CMK that encrypted the data key.
|
void |
setPlaintext(ByteBuffer plaintext)
The plaintext data key.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GenerateDataKeyResult |
withCiphertextBlob(ByteBuffer ciphertextBlob)
The encrypted copy of the data key.
|
GenerateDataKeyResult |
withKeyId(String keyId)
The identifier of the CMK that encrypted the data key.
|
GenerateDataKeyResult |
withPlaintext(ByteBuffer plaintext)
The plaintext data key.
|
public ByteBuffer getCiphertextBlob()
The encrypted copy of the data key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
Constraints:
Length: 1 - 6144
The encrypted copy of the data key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
public void setCiphertextBlob(ByteBuffer ciphertextBlob)
The encrypted copy of the data key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
Constraints:
Length: 1 - 6144
ciphertextBlob - The encrypted copy of the data key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
public GenerateDataKeyResult withCiphertextBlob(ByteBuffer ciphertextBlob)
The encrypted copy of the data key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 6144
ciphertextBlob - The encrypted copy of the data key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
public ByteBuffer getPlaintext()
The plaintext data key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded. Use this data key to encrypt your data outside of KMS. Then, remove it from memory as soon as possible.
Constraints:
Length: 1 - 4096
The plaintext data key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded. Use this data key to encrypt your data outside of KMS. Then, remove it from memory as soon as possible.
public void setPlaintext(ByteBuffer plaintext)
The plaintext data key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded. Use this data key to encrypt your data outside of KMS. Then, remove it from memory as soon as possible.
Constraints:
Length: 1 - 4096
plaintext - The plaintext data key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded. Use this data key to encrypt your data outside of KMS. Then, remove it from memory as soon as possible.
public GenerateDataKeyResult withPlaintext(ByteBuffer plaintext)
The plaintext data key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded. Use this data key to encrypt your data outside of KMS. 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 plaintext data key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded. Use this data key to encrypt your data outside of KMS. Then, remove it from memory as soon as possible.
public String getKeyId()
The identifier of the CMK that encrypted the data key.
Constraints:
Length: 1 - 2048
The identifier of the CMK that encrypted the data key.
public void setKeyId(String keyId)
The identifier of the CMK that encrypted the data key.
Constraints:
Length: 1 - 2048
keyId - The identifier of the CMK that encrypted the data key.
public GenerateDataKeyResult withKeyId(String keyId)
The identifier of the CMK that encrypted the data key.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2048
keyId - The identifier of the CMK that encrypted the data key.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.