public class GenerateDataKeyResult extends Object implements Serializable, Cloneable
| Constructor and Description |
|---|
GenerateDataKeyResult() |
| Modifier and Type | Method and Description |
|---|---|
GenerateDataKeyResult |
clone() |
boolean |
equals(Object obj) |
ByteBuffer |
getCiphertextBlob()
Ciphertext that contains the encrypted data key.
|
String |
getKeyId()
System generated unique identifier of the key to be used to decrypt
the encrypted copy of the data key.
|
ByteBuffer |
getPlaintext()
Plaintext that contains the data key.
|
int |
hashCode() |
void |
setCiphertextBlob(ByteBuffer ciphertextBlob)
Ciphertext that contains the encrypted data key.
|
void |
setKeyId(String keyId)
System generated unique identifier of the key to be used to decrypt
the encrypted copy of the data key.
|
void |
setPlaintext(ByteBuffer plaintext)
Plaintext that contains the data key.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GenerateDataKeyResult |
withCiphertextBlob(ByteBuffer ciphertextBlob)
Ciphertext that contains the encrypted data key.
|
GenerateDataKeyResult |
withKeyId(String keyId)
System generated unique identifier of the key to be used to decrypt
the encrypted copy of the data key.
|
GenerateDataKeyResult |
withPlaintext(ByteBuffer plaintext)
Plaintext that contains the data key.
|
public ByteBuffer getCiphertextBlob()
If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.
Constraints:
Length: 1 - 6144
If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.
public void setCiphertextBlob(ByteBuffer ciphertextBlob)
If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.
Constraints:
Length: 1 - 6144
ciphertextBlob - Ciphertext that contains the encrypted data key. You must store the
blob and enough information to reconstruct the encryption context so
that the data encrypted by using the key can later be decrypted. You
must provide both the ciphertext blob and the encryption context to
the Decrypt API to recover the plaintext data key and decrypt
the object. If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.
public GenerateDataKeyResult withCiphertextBlob(ByteBuffer ciphertextBlob)
If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 6144
ciphertextBlob - Ciphertext that contains the encrypted data key. You must store the
blob and enough information to reconstruct the encryption context so
that the data encrypted by using the key can later be decrypted. You
must provide both the ciphertext blob and the encryption context to
the Decrypt API to recover the plaintext data key and decrypt
the object. If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.
public ByteBuffer getPlaintext()
Constraints:
Length: 1 - 4096
public void setPlaintext(ByteBuffer plaintext)
Constraints:
Length: 1 - 4096
plaintext - Plaintext that contains the data 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 data 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 of the key to be used to decrypt
the encrypted copy of the data 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 of the key to be used to decrypt
the encrypted copy of the data key.public String toString()
toString in class ObjectObject.toString()public GenerateDataKeyResult clone()
Copyright © 2015. All rights reserved.