public class GenerateDataKeyResult extends Object implements Serializable
| Constructor and Description |
|---|
GenerateDataKeyResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ByteBuffer |
getCiphertextBlob()
Ciphertext that contains the wrapped key.
|
String |
getKeyId()
System generated unique identifier for the key.
|
ByteBuffer |
getPlaintext()
Plaintext that contains the unwrapped key.
|
int |
hashCode() |
void |
setCiphertextBlob(ByteBuffer ciphertextBlob)
Ciphertext that contains the wrapped key.
|
void |
setKeyId(String keyId)
System generated unique identifier for the key.
|
void |
setPlaintext(ByteBuffer plaintext)
Plaintext that contains the unwrapped key.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GenerateDataKeyResult |
withCiphertextBlob(ByteBuffer ciphertextBlob)
Ciphertext that contains the wrapped key.
|
GenerateDataKeyResult |
withKeyId(String keyId)
System generated unique identifier for the key.
|
GenerateDataKeyResult |
withPlaintext(ByteBuffer plaintext)
Plaintext that contains the unwrapped key.
|
public ByteBuffer getCiphertextBlob()
Constraints:
Length: 1 - 6144
public void setCiphertextBlob(ByteBuffer ciphertextBlob)
Constraints:
Length: 1 - 6144
ciphertextBlob - Ciphertext that contains the wrapped key. You must store the blob and
encryption context so that the ciphertext can be decrypted. You must
provide both the ciphertext blob and the encryption context.public GenerateDataKeyResult withCiphertextBlob(ByteBuffer ciphertextBlob)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 6144
ciphertextBlob - Ciphertext that contains the wrapped key. You must store the blob and
encryption context so that the ciphertext can be decrypted. You must
provide both the ciphertext blob and the encryption context.public ByteBuffer getPlaintext()
Constraints:
Length: 1 - 4096
public void setPlaintext(ByteBuffer plaintext)
Constraints:
Length: 1 - 4096
plaintext - Plaintext that contains the unwrapped key. Use this for encryption and
decryption and then remove it from memory as soon as possible.public GenerateDataKeyResult withPlaintext(ByteBuffer plaintext)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 4096
plaintext - Plaintext that contains the unwrapped key. Use this for encryption and
decryption and then remove it from memory as soon as possible.public String getKeyId()
Constraints:
Length: 1 - 256
public void setKeyId(String keyId)
Constraints:
Length: 1 - 256
keyId - System generated unique identifier for the key.public GenerateDataKeyResult withKeyId(String keyId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
keyId - System generated unique identifier for the key.public String toString()
toString in class ObjectObject.toString()Copyright © 2014. All rights reserved.