public class EncryptResult extends Object implements Serializable
| Constructor and Description |
|---|
EncryptResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ByteBuffer |
getCiphertextBlob()
The encrypted plaintext.
|
String |
getEncryptionAlgorithm()
The encryption algorithm that was used to encrypt the plaintext.
|
String |
getKeyId()
The ID of the key used during encryption.
|
int |
hashCode() |
void |
setCiphertextBlob(ByteBuffer ciphertextBlob)
The encrypted plaintext.
|
void |
setEncryptionAlgorithm(EncryptionAlgorithmSpec encryptionAlgorithm)
The encryption algorithm that was used to encrypt the plaintext.
|
void |
setEncryptionAlgorithm(String encryptionAlgorithm)
The encryption algorithm that was used to encrypt the 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 |
withEncryptionAlgorithm(EncryptionAlgorithmSpec encryptionAlgorithm)
The encryption algorithm that was used to encrypt the plaintext.
|
EncryptResult |
withEncryptionAlgorithm(String encryptionAlgorithm)
The encryption algorithm that was used to encrypt the plaintext.
|
EncryptResult |
withKeyId(String keyId)
The ID of the key used during encryption.
|
public ByteBuffer getCiphertextBlob()
The encrypted plaintext. 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 plaintext. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
public void setCiphertextBlob(ByteBuffer ciphertextBlob)
The encrypted plaintext. 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 plaintext. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
public EncryptResult withCiphertextBlob(ByteBuffer ciphertextBlob)
The encrypted plaintext. 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 plaintext. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
public String getKeyId()
The ID of the key used during encryption.
Constraints:
Length: 1 - 2048
The ID of the key used during encryption.
public void setKeyId(String keyId)
The ID of the key used during encryption.
Constraints:
Length: 1 - 2048
keyId - The ID of the key used during encryption.
public EncryptResult withKeyId(String keyId)
The ID of the key used during encryption.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2048
keyId - The ID of the key used during encryption.
public String getEncryptionAlgorithm()
The encryption algorithm that was used to encrypt the plaintext.
Constraints:
Allowed Values: SYMMETRIC_DEFAULT, RSAES_OAEP_SHA_1,
RSAES_OAEP_SHA_256
The encryption algorithm that was used to encrypt the plaintext.
EncryptionAlgorithmSpecpublic void setEncryptionAlgorithm(String encryptionAlgorithm)
The encryption algorithm that was used to encrypt the plaintext.
Constraints:
Allowed Values: SYMMETRIC_DEFAULT, RSAES_OAEP_SHA_1,
RSAES_OAEP_SHA_256
encryptionAlgorithm - The encryption algorithm that was used to encrypt the plaintext.
EncryptionAlgorithmSpecpublic EncryptResult withEncryptionAlgorithm(String encryptionAlgorithm)
The encryption algorithm that was used to encrypt the plaintext.
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 encrypt the plaintext.
EncryptionAlgorithmSpecpublic void setEncryptionAlgorithm(EncryptionAlgorithmSpec encryptionAlgorithm)
The encryption algorithm that was used to encrypt the plaintext.
Constraints:
Allowed Values: SYMMETRIC_DEFAULT, RSAES_OAEP_SHA_1,
RSAES_OAEP_SHA_256
encryptionAlgorithm - The encryption algorithm that was used to encrypt the plaintext.
EncryptionAlgorithmSpecpublic EncryptResult withEncryptionAlgorithm(EncryptionAlgorithmSpec encryptionAlgorithm)
The encryption algorithm that was used to encrypt the plaintext.
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 encrypt the plaintext.
EncryptionAlgorithmSpecpublic String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.