public class GenerateDataKeyResult
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
GenerateDataKeyResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.nio.ByteBuffer |
getCiphertextBlob()
The encrypted data encryption key.
|
java.lang.String |
getKeyId()
The identifier of the CMK under which the data encryption key was
generated and encrypted.
|
java.nio.ByteBuffer |
getPlaintext()
The data encryption key.
|
int |
hashCode() |
void |
setCiphertextBlob(java.nio.ByteBuffer ciphertextBlob)
The encrypted data encryption key.
|
void |
setKeyId(java.lang.String keyId)
The identifier of the CMK under which the data encryption key was
generated and encrypted.
|
void |
setPlaintext(java.nio.ByteBuffer plaintext)
The data encryption key.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GenerateDataKeyResult |
withCiphertextBlob(java.nio.ByteBuffer ciphertextBlob)
The encrypted data encryption key.
|
GenerateDataKeyResult |
withKeyId(java.lang.String keyId)
The identifier of the CMK under which the data encryption key was
generated and encrypted.
|
GenerateDataKeyResult |
withPlaintext(java.nio.ByteBuffer plaintext)
The data encryption key.
|
public java.nio.ByteBuffer getCiphertextBlob()
The encrypted data encryption key.
Constraints:
Length: 1 - 6144
The encrypted data encryption key.
public void setCiphertextBlob(java.nio.ByteBuffer ciphertextBlob)
The encrypted data encryption key.
Constraints:
Length: 1 - 6144
ciphertextBlob
- The encrypted data encryption key.
public GenerateDataKeyResult withCiphertextBlob(java.nio.ByteBuffer ciphertextBlob)
The encrypted data encryption key.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 6144
ciphertextBlob
- The encrypted data encryption key.
public java.nio.ByteBuffer getPlaintext()
The data encryption key. 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. Use this data key for local encryption and decryption, then remove it from memory as soon as possible.
public void setPlaintext(java.nio.ByteBuffer plaintext)
The data encryption key. 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. Use this data key for local encryption and decryption, then remove it from memory as soon as possible.
public GenerateDataKeyResult withPlaintext(java.nio.ByteBuffer plaintext)
The data encryption key. 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. Use this data key for local encryption and decryption, then remove it from memory as soon as possible.
public java.lang.String getKeyId()
The identifier of the CMK under which the data encryption key was generated and encrypted.
Constraints:
Length: 1 - 256
The identifier of the CMK under which the data encryption key was generated and encrypted.
public void setKeyId(java.lang.String keyId)
The identifier of the CMK under which the data encryption key was generated and encrypted.
Constraints:
Length: 1 - 256
keyId
- The identifier of the CMK under which the data encryption key was generated and encrypted.
public GenerateDataKeyResult withKeyId(java.lang.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 - 256
keyId
- The identifier of the CMK under which the data encryption key was generated and encrypted.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.