public class DecryptResult extends Object implements Serializable
Constructor and Description |
---|
DecryptResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getKeyId()
Unique identifier created by the system for the key.
|
ByteBuffer |
getPlaintext()
Decrypted plaintext data.
|
int |
hashCode() |
void |
setKeyId(String keyId)
Unique identifier created by the system for the key.
|
void |
setPlaintext(ByteBuffer plaintext)
Decrypted plaintext data.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DecryptResult |
withKeyId(String keyId)
Unique identifier created by the system for the key.
|
DecryptResult |
withPlaintext(ByteBuffer plaintext)
Decrypted plaintext data.
|
public String getKeyId()
Constraints:
Length: 1 - 256
public void setKeyId(String keyId)
Constraints:
Length: 1 - 256
keyId
- Unique identifier created by the system for the key. This value is
always returned as long as no errors are encountered during the
operation.public DecryptResult withKeyId(String keyId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
keyId
- Unique identifier created by the system for the key. This value is
always returned as long as no errors are encountered during the
operation.public ByteBuffer getPlaintext()
Constraints:
Length: 1 - 4096
public void setPlaintext(ByteBuffer plaintext)
Constraints:
Length: 1 - 4096
plaintext
- Decrypted plaintext data. This value may not be returned if the
customer master key is not available or if you didn't have permission
to use it.public DecryptResult withPlaintext(ByteBuffer plaintext)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 4096
plaintext
- Decrypted plaintext data. This value may not be returned if the
customer master key is not available or if you didn't have permission
to use it.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.