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 copy of the data key.
|
java.lang.String |
getKeyId()
The Amazon Resource Name (key ARN) of the CMK that encrypted the data key.
|
java.nio.ByteBuffer |
getPlaintext()
The plaintext data key.
|
int |
hashCode() |
void |
setCiphertextBlob(java.nio.ByteBuffer ciphertextBlob)
The encrypted copy of the data key.
|
void |
setKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) of the CMK that encrypted the data key.
|
void |
setPlaintext(java.nio.ByteBuffer plaintext)
The plaintext data 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 copy of the data key.
|
GenerateDataKeyResult |
withKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) of the CMK that encrypted the data key.
|
GenerateDataKeyResult |
withPlaintext(java.nio.ByteBuffer plaintext)
The plaintext data key.
|
public java.nio.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(java.nio.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(java.nio.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 java.nio.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(java.nio.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(java.nio.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 java.lang.String getKeyId()
The Amazon Resource Name (key ARN) of the CMK that encrypted the data key.
Constraints:
Length: 1 - 2048
The Amazon Resource Name (key ARN) of the CMK that encrypted the data key.
public void setKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) of the CMK that encrypted the data key.
Constraints:
Length: 1 - 2048
keyId
- The Amazon Resource Name (key ARN) of the CMK that encrypted the data key.
public GenerateDataKeyResult withKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) 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 Amazon Resource Name (key ARN) of the CMK that encrypted the data key.
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 © 2018 Amazon Web Services, Inc. All Rights Reserved.