public class DecryptResult extends Object implements Serializable
| Constructor and Description |
|---|
DecryptResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getEncryptionAlgorithm()
The encryption algorithm that was used to decrypt the ciphertext.
|
String |
getKeyId()
The ARN of the customer master key that was used to perform the
decryption.
|
ByteBuffer |
getPlaintext()
Decrypted plaintext data.
|
int |
hashCode() |
void |
setEncryptionAlgorithm(EncryptionAlgorithmSpec encryptionAlgorithm)
The encryption algorithm that was used to decrypt the ciphertext.
|
void |
setEncryptionAlgorithm(String encryptionAlgorithm)
The encryption algorithm that was used to decrypt the ciphertext.
|
void |
setKeyId(String keyId)
The ARN of the customer master key that was used to perform the
decryption.
|
void |
setPlaintext(ByteBuffer plaintext)
Decrypted plaintext data.
|
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(String encryptionAlgorithm)
The encryption algorithm that was used to decrypt the ciphertext.
|
DecryptResult |
withKeyId(String keyId)
The ARN of the customer master key that was used to perform the
decryption.
|
DecryptResult |
withPlaintext(ByteBuffer plaintext)
Decrypted plaintext data.
|
public String getKeyId()
The ARN of the customer master key that was used to perform the decryption.
Constraints:
Length: 1 - 2048
The ARN of the customer master key that was used to perform the decryption.
public void setKeyId(String keyId)
The ARN of the customer master key that was used to perform the decryption.
Constraints:
Length: 1 - 2048
keyId - The ARN of the customer master key that was used to perform the decryption.
public DecryptResult withKeyId(String keyId)
The ARN of the customer master key that was used to perform the decryption.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2048
keyId - The ARN of the customer master key that was used to perform the decryption.
public 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(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(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 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(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(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 String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.