public class EncryptResult extends Object implements Serializable, Cloneable
Constructor and Description |
---|
EncryptResult() |
Modifier and Type | Method and Description |
---|---|
EncryptResult |
clone() |
boolean |
equals(Object obj) |
ByteBuffer |
getCiphertextBlob()
The encrypted plaintext.
|
String |
getKeyId()
The ID of the key used during encryption.
|
int |
hashCode() |
void |
setCiphertextBlob(ByteBuffer ciphertextBlob)
The encrypted plaintext.
|
void |
setKeyId(String keyId)
The ID of the key used during encryption.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EncryptResult |
withCiphertextBlob(ByteBuffer ciphertextBlob)
The encrypted plaintext.
|
EncryptResult |
withKeyId(String keyId)
The ID of the key used during encryption.
|
public ByteBuffer getCiphertextBlob()
Constraints:
Length: 1 - 6144
public void setCiphertextBlob(ByteBuffer ciphertextBlob)
Constraints:
Length: 1 - 6144
ciphertextBlob
- The encrypted plaintext. If you are using the CLI, the value is Base64
encoded. Otherwise, it is not encoded.public EncryptResult withCiphertextBlob(ByteBuffer ciphertextBlob)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 6144
ciphertextBlob
- The encrypted plaintext. If you are using the CLI, the value is Base64
encoded. Otherwise, it is not encoded.public String getKeyId()
Constraints:
Length: 1 - 256
public void setKeyId(String keyId)
Constraints:
Length: 1 - 256
keyId
- The ID of the key used during encryption.public EncryptResult withKeyId(String keyId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
keyId
- The ID of the key used during encryption.public String toString()
toString
in class Object
Object.toString()
public EncryptResult clone()
Copyright © 2015. All rights reserved.