public class DecryptResult
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
DecryptResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getEncryptionAlgorithm()
The encryption algorithm that was used to decrypt the ciphertext.
|
java.lang.String |
getKeyId()
The Amazon Resource Name (key ARN) of the CMK that was used to decrypt the ciphertext.
|
java.nio.ByteBuffer |
getPlaintext()
Decrypted plaintext data.
|
int |
hashCode() |
void |
setEncryptionAlgorithm(EncryptionAlgorithmSpec encryptionAlgorithm)
The encryption algorithm that was used to decrypt the ciphertext.
|
void |
setEncryptionAlgorithm(java.lang.String encryptionAlgorithm)
The encryption algorithm that was used to decrypt the ciphertext.
|
void |
setKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) of the CMK that was used to decrypt the ciphertext.
|
void |
setPlaintext(java.nio.ByteBuffer plaintext)
Decrypted plaintext data.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DecryptResult |
withEncryptionAlgorithm(EncryptionAlgorithmSpec encryptionAlgorithm)
The encryption algorithm that was used to decrypt the ciphertext.
|
DecryptResult |
withEncryptionAlgorithm(java.lang.String encryptionAlgorithm)
The encryption algorithm that was used to decrypt the ciphertext.
|
DecryptResult |
withKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) of the CMK that was used to decrypt the ciphertext.
|
DecryptResult |
withPlaintext(java.nio.ByteBuffer plaintext)
Decrypted plaintext data.
|
public java.lang.String getKeyId()
The Amazon Resource Name (key ARN) of the CMK that was used to decrypt the ciphertext.
Constraints:
Length: 1 - 2048
The Amazon Resource Name (key ARN) of the CMK that was used to decrypt the ciphertext.
public void setKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) of the CMK that was used to decrypt the ciphertext.
Constraints:
Length: 1 - 2048
keyId - The Amazon Resource Name (key ARN) of the CMK that was used to decrypt the ciphertext.
public DecryptResult withKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) of the CMK that was used to decrypt the ciphertext.
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 was used to decrypt the ciphertext.
public java.nio.ByteBuffer getPlaintext()
Decrypted plaintext data. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
Constraints:
Length: 1 - 4096
Decrypted plaintext data. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
public void setPlaintext(java.nio.ByteBuffer plaintext)
Decrypted plaintext data. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
Constraints:
Length: 1 - 4096
plaintext - Decrypted plaintext data. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
public DecryptResult withPlaintext(java.nio.ByteBuffer plaintext)
Decrypted plaintext data. 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 - 4096
plaintext - Decrypted plaintext data. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
public java.lang.String getEncryptionAlgorithm()
The encryption algorithm that was used to decrypt the ciphertext.
Constraints:
Allowed Values: SYMMETRIC_DEFAULT, RSAES_OAEP_SHA_1,
RSAES_OAEP_SHA_256
The encryption algorithm that was used to decrypt the ciphertext.
EncryptionAlgorithmSpecpublic void setEncryptionAlgorithm(java.lang.String encryptionAlgorithm)
The encryption algorithm that was used to decrypt the ciphertext.
Constraints:
Allowed Values: SYMMETRIC_DEFAULT, RSAES_OAEP_SHA_1,
RSAES_OAEP_SHA_256
encryptionAlgorithm - The encryption algorithm that was used to decrypt the ciphertext.
EncryptionAlgorithmSpecpublic DecryptResult withEncryptionAlgorithm(java.lang.String encryptionAlgorithm)
The encryption algorithm that was used to decrypt the ciphertext.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SYMMETRIC_DEFAULT, RSAES_OAEP_SHA_1,
RSAES_OAEP_SHA_256
encryptionAlgorithm - The encryption algorithm that was used to decrypt the ciphertext.
EncryptionAlgorithmSpecpublic void setEncryptionAlgorithm(EncryptionAlgorithmSpec encryptionAlgorithm)
The encryption algorithm that was used to decrypt the ciphertext.
Constraints:
Allowed Values: SYMMETRIC_DEFAULT, RSAES_OAEP_SHA_1,
RSAES_OAEP_SHA_256
encryptionAlgorithm - The encryption algorithm that was used to decrypt the ciphertext.
EncryptionAlgorithmSpecpublic DecryptResult withEncryptionAlgorithm(EncryptionAlgorithmSpec encryptionAlgorithm)
The encryption algorithm that was used to decrypt the ciphertext.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SYMMETRIC_DEFAULT, RSAES_OAEP_SHA_1,
RSAES_OAEP_SHA_256
encryptionAlgorithm - The encryption algorithm that was used to decrypt the ciphertext.
EncryptionAlgorithmSpecpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.