public class GenerateDataKeyWithoutPlaintextResult extends Object implements Serializable, Cloneable
Constructor and Description |
---|
GenerateDataKeyWithoutPlaintextResult() |
Modifier and Type | Method and Description |
---|---|
GenerateDataKeyWithoutPlaintextResult |
clone() |
boolean |
equals(Object obj) |
ByteBuffer |
getCiphertextBlob()
Ciphertext that contains the wrapped data key.
|
String |
getKeyId()
System generated unique identifier of the key to be used to decrypt the
encrypted copy of the data key.
|
int |
hashCode() |
void |
setCiphertextBlob(ByteBuffer ciphertextBlob)
Ciphertext that contains the wrapped 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.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GenerateDataKeyWithoutPlaintextResult |
withCiphertextBlob(ByteBuffer ciphertextBlob)
Ciphertext that contains the wrapped data key.
|
GenerateDataKeyWithoutPlaintextResult |
withKeyId(String keyId)
System generated unique identifier of the key to be used to decrypt the
encrypted copy of the data key.
|
public GenerateDataKeyWithoutPlaintextResult()
public void setCiphertextBlob(ByteBuffer ciphertextBlob)
Ciphertext that contains the wrapped data key. You must store the blob and encryption context so that the key can be used in a future decrypt operation.
If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.
AWS SDK for Java performs a Base64 encoding on this field before sending this request to AWS service by default. Users of the SDK should not perform Base64 encoding on this field.
ciphertextBlob
- Ciphertext that contains the wrapped data key. You must store the
blob and encryption context so that the key can be used in a
future decrypt operation.
If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.
public ByteBuffer getCiphertextBlob()
Ciphertext that contains the wrapped data key. You must store the blob and encryption context so that the key can be used in a future decrypt operation.
If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.
ByteBuffer
s are stateful. Calling their get
methods
changes their position
. We recommend using
ByteBuffer.asReadOnlyBuffer()
to create a read-only view
of the buffer with an independent position
, and calling
get
methods on this rather than directly on the returned
ByteBuffer
. Doing so will ensure that anyone else using the
ByteBuffer
will not be affected by changes to the position
.
If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.
public GenerateDataKeyWithoutPlaintextResult withCiphertextBlob(ByteBuffer ciphertextBlob)
Ciphertext that contains the wrapped data key. You must store the blob and encryption context so that the key can be used in a future decrypt operation.
If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.
ciphertextBlob
- Ciphertext that contains the wrapped data key. You must store the
blob and encryption context so that the key can be used in a
future decrypt operation.
If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.
public void setKeyId(String keyId)
System generated unique identifier of the key to be used to decrypt the encrypted copy of the data key.
keyId
- System generated unique identifier of the key to be used to
decrypt the encrypted copy of the data key.public String getKeyId()
System generated unique identifier of the key to be used to decrypt the encrypted copy of the data key.
public GenerateDataKeyWithoutPlaintextResult withKeyId(String keyId)
System generated unique identifier of the key to be used to decrypt the encrypted copy of the data key.
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 Object
Object.toString()
public GenerateDataKeyWithoutPlaintextResult clone()
Copyright © 2015. All rights reserved.