@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RecipientInfo extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about the party that receives the response from the API operation.
This data type is designed to support Amazon Web Services Nitro Enclaves, which lets you create an isolated compute environment in Amazon EC2. For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.
Constructor and Description |
---|
RecipientInfo() |
Modifier and Type | Method and Description |
---|---|
RecipientInfo |
clone() |
boolean |
equals(Object obj) |
ByteBuffer |
getAttestationDocument()
The attestation document for an Amazon Web Services Nitro Enclave.
|
String |
getKeyEncryptionAlgorithm()
The encryption algorithm that KMS should use with the public key for an Amazon Web Services Nitro Enclave to
encrypt plaintext values for the response.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAttestationDocument(ByteBuffer attestationDocument)
The attestation document for an Amazon Web Services Nitro Enclave.
|
void |
setKeyEncryptionAlgorithm(String keyEncryptionAlgorithm)
The encryption algorithm that KMS should use with the public key for an Amazon Web Services Nitro Enclave to
encrypt plaintext values for the response.
|
String |
toString()
Returns a string representation of this object.
|
RecipientInfo |
withAttestationDocument(ByteBuffer attestationDocument)
The attestation document for an Amazon Web Services Nitro Enclave.
|
RecipientInfo |
withKeyEncryptionAlgorithm(KeyEncryptionMechanism keyEncryptionAlgorithm)
The encryption algorithm that KMS should use with the public key for an Amazon Web Services Nitro Enclave to
encrypt plaintext values for the response.
|
RecipientInfo |
withKeyEncryptionAlgorithm(String keyEncryptionAlgorithm)
The encryption algorithm that KMS should use with the public key for an Amazon Web Services Nitro Enclave to
encrypt plaintext values for the response.
|
public void setKeyEncryptionAlgorithm(String keyEncryptionAlgorithm)
The encryption algorithm that KMS should use with the public key for an Amazon Web Services Nitro Enclave to
encrypt plaintext values for the response. The only valid value is RSAES_OAEP_SHA_256
.
keyEncryptionAlgorithm
- The encryption algorithm that KMS should use with the public key for an Amazon Web Services Nitro Enclave
to encrypt plaintext values for the response. The only valid value is RSAES_OAEP_SHA_256
.KeyEncryptionMechanism
public String getKeyEncryptionAlgorithm()
The encryption algorithm that KMS should use with the public key for an Amazon Web Services Nitro Enclave to
encrypt plaintext values for the response. The only valid value is RSAES_OAEP_SHA_256
.
RSAES_OAEP_SHA_256
.KeyEncryptionMechanism
public RecipientInfo withKeyEncryptionAlgorithm(String keyEncryptionAlgorithm)
The encryption algorithm that KMS should use with the public key for an Amazon Web Services Nitro Enclave to
encrypt plaintext values for the response. The only valid value is RSAES_OAEP_SHA_256
.
keyEncryptionAlgorithm
- The encryption algorithm that KMS should use with the public key for an Amazon Web Services Nitro Enclave
to encrypt plaintext values for the response. The only valid value is RSAES_OAEP_SHA_256
.KeyEncryptionMechanism
public RecipientInfo withKeyEncryptionAlgorithm(KeyEncryptionMechanism keyEncryptionAlgorithm)
The encryption algorithm that KMS should use with the public key for an Amazon Web Services Nitro Enclave to
encrypt plaintext values for the response. The only valid value is RSAES_OAEP_SHA_256
.
keyEncryptionAlgorithm
- The encryption algorithm that KMS should use with the public key for an Amazon Web Services Nitro Enclave
to encrypt plaintext values for the response. The only valid value is RSAES_OAEP_SHA_256
.KeyEncryptionMechanism
public void setAttestationDocument(ByteBuffer attestationDocument)
The attestation document for an Amazon Web Services Nitro Enclave. This document includes the enclave's public key.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
attestationDocument
- The attestation document for an Amazon Web Services Nitro Enclave. This document includes the enclave's
public key.public ByteBuffer getAttestationDocument()
The attestation document for an Amazon Web Services Nitro Enclave. This document includes the enclave's public key.
ByteBuffer
s are stateful. Calling their get
methods changes their position
. We recommend
using ByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independent
position
, and calling get
methods on this rather than directly on the returned ByteBuffer
.
Doing so will ensure that anyone else using the ByteBuffer
will not be affected by changes to the
position
.
public RecipientInfo withAttestationDocument(ByteBuffer attestationDocument)
The attestation document for an Amazon Web Services Nitro Enclave. This document includes the enclave's public key.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
attestationDocument
- The attestation document for an Amazon Web Services Nitro Enclave. This document includes the enclave's
public key.public String toString()
toString
in class Object
Object.toString()
public RecipientInfo clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.