@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DeriveSharedSecretRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
DeriveSharedSecretRequest() |
Modifier and Type | Method and Description |
---|---|
DeriveSharedSecretRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Boolean |
getDryRun()
Checks if your request will succeed.
|
List<String> |
getGrantTokens()
A list of grant tokens.
|
String |
getKeyAgreementAlgorithm()
Specifies the key agreement algorithm used to derive the shared secret.
|
String |
getKeyId()
Identifies an asymmetric NIST-recommended ECC or SM2 (China Regions only) KMS key.
|
ByteBuffer |
getPublicKey()
Specifies the public key in your peer's NIST-recommended elliptic curve (ECC) or SM2 (China Regions only) key
pair.
|
RecipientInfo |
getRecipient()
A signed attestation
document from an Amazon Web Services Nitro enclave and the encryption algorithm to use with the enclave's
public key.
|
int |
hashCode() |
Boolean |
isDryRun()
Checks if your request will succeed.
|
void |
setDryRun(Boolean dryRun)
Checks if your request will succeed.
|
void |
setGrantTokens(Collection<String> grantTokens)
A list of grant tokens.
|
void |
setKeyAgreementAlgorithm(String keyAgreementAlgorithm)
Specifies the key agreement algorithm used to derive the shared secret.
|
void |
setKeyId(String keyId)
Identifies an asymmetric NIST-recommended ECC or SM2 (China Regions only) KMS key.
|
void |
setPublicKey(ByteBuffer publicKey)
Specifies the public key in your peer's NIST-recommended elliptic curve (ECC) or SM2 (China Regions only) key
pair.
|
void |
setRecipient(RecipientInfo recipient)
A signed attestation
document from an Amazon Web Services Nitro enclave and the encryption algorithm to use with the enclave's
public key.
|
String |
toString()
Returns a string representation of this object.
|
DeriveSharedSecretRequest |
withDryRun(Boolean dryRun)
Checks if your request will succeed.
|
DeriveSharedSecretRequest |
withGrantTokens(Collection<String> grantTokens)
A list of grant tokens.
|
DeriveSharedSecretRequest |
withGrantTokens(String... grantTokens)
A list of grant tokens.
|
DeriveSharedSecretRequest |
withKeyAgreementAlgorithm(KeyAgreementAlgorithmSpec keyAgreementAlgorithm)
Specifies the key agreement algorithm used to derive the shared secret.
|
DeriveSharedSecretRequest |
withKeyAgreementAlgorithm(String keyAgreementAlgorithm)
Specifies the key agreement algorithm used to derive the shared secret.
|
DeriveSharedSecretRequest |
withKeyId(String keyId)
Identifies an asymmetric NIST-recommended ECC or SM2 (China Regions only) KMS key.
|
DeriveSharedSecretRequest |
withPublicKey(ByteBuffer publicKey)
Specifies the public key in your peer's NIST-recommended elliptic curve (ECC) or SM2 (China Regions only) key
pair.
|
DeriveSharedSecretRequest |
withRecipient(RecipientInfo recipient)
A signed attestation
document from an Amazon Web Services Nitro enclave and the encryption algorithm to use with the enclave's
public key.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setKeyId(String keyId)
Identifies an asymmetric NIST-recommended ECC or SM2 (China Regions only) KMS key. KMS uses the private key in
the specified key pair to derive the shared secret. The key usage of the KMS key must be
KEY_AGREEMENT
. To find the KeyUsage
of a KMS key, use the DescribeKey operation.
To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with
"alias/"
. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN
or alias ARN.
For example:
Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
Alias name: alias/ExampleAlias
Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias
To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.
keyId
- Identifies an asymmetric NIST-recommended ECC or SM2 (China Regions only) KMS key. KMS uses the private
key in the specified key pair to derive the shared secret. The key usage of the KMS key must be
KEY_AGREEMENT
. To find the KeyUsage
of a KMS key, use the DescribeKey
operation.
To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix
it with "alias/"
. To specify a KMS key in a different Amazon Web Services account, you must
use the key ARN or alias ARN.
For example:
Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
Alias name: alias/ExampleAlias
Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias
To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.
public String getKeyId()
Identifies an asymmetric NIST-recommended ECC or SM2 (China Regions only) KMS key. KMS uses the private key in
the specified key pair to derive the shared secret. The key usage of the KMS key must be
KEY_AGREEMENT
. To find the KeyUsage
of a KMS key, use the DescribeKey operation.
To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with
"alias/"
. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN
or alias ARN.
For example:
Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
Alias name: alias/ExampleAlias
Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias
To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.
KEY_AGREEMENT
. To find the KeyUsage
of a KMS key, use the DescribeKey
operation.
To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix
it with "alias/"
. To specify a KMS key in a different Amazon Web Services account, you must
use the key ARN or alias ARN.
For example:
Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
Alias name: alias/ExampleAlias
Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias
To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.
public DeriveSharedSecretRequest withKeyId(String keyId)
Identifies an asymmetric NIST-recommended ECC or SM2 (China Regions only) KMS key. KMS uses the private key in
the specified key pair to derive the shared secret. The key usage of the KMS key must be
KEY_AGREEMENT
. To find the KeyUsage
of a KMS key, use the DescribeKey operation.
To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with
"alias/"
. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN
or alias ARN.
For example:
Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
Alias name: alias/ExampleAlias
Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias
To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.
keyId
- Identifies an asymmetric NIST-recommended ECC or SM2 (China Regions only) KMS key. KMS uses the private
key in the specified key pair to derive the shared secret. The key usage of the KMS key must be
KEY_AGREEMENT
. To find the KeyUsage
of a KMS key, use the DescribeKey
operation.
To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix
it with "alias/"
. To specify a KMS key in a different Amazon Web Services account, you must
use the key ARN or alias ARN.
For example:
Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
Alias name: alias/ExampleAlias
Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias
To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.
public void setKeyAgreementAlgorithm(String keyAgreementAlgorithm)
Specifies the key agreement algorithm used to derive the shared secret. The only valid value is ECDH
.
keyAgreementAlgorithm
- Specifies the key agreement algorithm used to derive the shared secret. The only valid value is
ECDH
.KeyAgreementAlgorithmSpec
public String getKeyAgreementAlgorithm()
Specifies the key agreement algorithm used to derive the shared secret. The only valid value is ECDH
.
ECDH
.KeyAgreementAlgorithmSpec
public DeriveSharedSecretRequest withKeyAgreementAlgorithm(String keyAgreementAlgorithm)
Specifies the key agreement algorithm used to derive the shared secret. The only valid value is ECDH
.
keyAgreementAlgorithm
- Specifies the key agreement algorithm used to derive the shared secret. The only valid value is
ECDH
.KeyAgreementAlgorithmSpec
public DeriveSharedSecretRequest withKeyAgreementAlgorithm(KeyAgreementAlgorithmSpec keyAgreementAlgorithm)
Specifies the key agreement algorithm used to derive the shared secret. The only valid value is ECDH
.
keyAgreementAlgorithm
- Specifies the key agreement algorithm used to derive the shared secret. The only valid value is
ECDH
.KeyAgreementAlgorithmSpec
public void setPublicKey(ByteBuffer publicKey)
Specifies the public key in your peer's NIST-recommended elliptic curve (ECC) or SM2 (China Regions only) key pair.
The public key must be a DER-encoded X.509 public key, also known as SubjectPublicKeyInfo
(SPKI), as
defined in RFC 5280.
GetPublicKey returns the public key of an asymmetric KMS key pair in the required DER-encoded format.
If you use Amazon Web Services CLI
version 1, you must provide the DER-encoded X.509 public key in a file. Otherwise, the Amazon Web Services
CLI Base64-encodes the public key a second time, resulting in a ValidationException
.
You can specify the public key as binary data in a file using fileb (fileb://<path-to-file>
)
or in-line using a Base64 encoded string.
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.
publicKey
- Specifies the public key in your peer's NIST-recommended elliptic curve (ECC) or SM2 (China Regions only)
key pair.
The public key must be a DER-encoded X.509 public key, also known as SubjectPublicKeyInfo
(SPKI), as defined in RFC 5280.
GetPublicKey returns the public key of an asymmetric KMS key pair in the required DER-encoded format.
If you use Amazon Web
Services CLI version 1, you must provide the DER-encoded X.509 public key in a file. Otherwise, the
Amazon Web Services CLI Base64-encodes the public key a second time, resulting in a
ValidationException
.
You can specify the public key as binary data in a file using fileb (
fileb://<path-to-file>
) or in-line using a Base64 encoded string.
public ByteBuffer getPublicKey()
Specifies the public key in your peer's NIST-recommended elliptic curve (ECC) or SM2 (China Regions only) key pair.
The public key must be a DER-encoded X.509 public key, also known as SubjectPublicKeyInfo
(SPKI), as
defined in RFC 5280.
GetPublicKey returns the public key of an asymmetric KMS key pair in the required DER-encoded format.
If you use Amazon Web Services CLI
version 1, you must provide the DER-encoded X.509 public key in a file. Otherwise, the Amazon Web Services
CLI Base64-encodes the public key a second time, resulting in a ValidationException
.
You can specify the public key as binary data in a file using fileb (fileb://<path-to-file>
)
or in-line using a Base64 encoded string.
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
.
The public key must be a DER-encoded X.509 public key, also known as SubjectPublicKeyInfo
(SPKI), as defined in RFC 5280.
GetPublicKey returns the public key of an asymmetric KMS key pair in the required DER-encoded format.
If you use Amazon Web
Services CLI version 1, you must provide the DER-encoded X.509 public key in a file. Otherwise, the
Amazon Web Services CLI Base64-encodes the public key a second time, resulting in a
ValidationException
.
You can specify the public key as binary data in a file using fileb (
fileb://<path-to-file>
) or in-line using a Base64 encoded string.
public DeriveSharedSecretRequest withPublicKey(ByteBuffer publicKey)
Specifies the public key in your peer's NIST-recommended elliptic curve (ECC) or SM2 (China Regions only) key pair.
The public key must be a DER-encoded X.509 public key, also known as SubjectPublicKeyInfo
(SPKI), as
defined in RFC 5280.
GetPublicKey returns the public key of an asymmetric KMS key pair in the required DER-encoded format.
If you use Amazon Web Services CLI
version 1, you must provide the DER-encoded X.509 public key in a file. Otherwise, the Amazon Web Services
CLI Base64-encodes the public key a second time, resulting in a ValidationException
.
You can specify the public key as binary data in a file using fileb (fileb://<path-to-file>
)
or in-line using a Base64 encoded string.
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.
publicKey
- Specifies the public key in your peer's NIST-recommended elliptic curve (ECC) or SM2 (China Regions only)
key pair.
The public key must be a DER-encoded X.509 public key, also known as SubjectPublicKeyInfo
(SPKI), as defined in RFC 5280.
GetPublicKey returns the public key of an asymmetric KMS key pair in the required DER-encoded format.
If you use Amazon Web
Services CLI version 1, you must provide the DER-encoded X.509 public key in a file. Otherwise, the
Amazon Web Services CLI Base64-encodes the public key a second time, resulting in a
ValidationException
.
You can specify the public key as binary data in a file using fileb (
fileb://<path-to-file>
) or in-line using a Base64 encoded string.
public List<String> getGrantTokens()
A list of grant tokens.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.
public void setGrantTokens(Collection<String> grantTokens)
A list of grant tokens.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.
grantTokens
- A list of grant tokens.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.
public DeriveSharedSecretRequest withGrantTokens(String... grantTokens)
A list of grant tokens.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.
NOTE: This method appends the values to the existing list (if any). Use
setGrantTokens(java.util.Collection)
or withGrantTokens(java.util.Collection)
if you want to
override the existing values.
grantTokens
- A list of grant tokens.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.
public DeriveSharedSecretRequest withGrantTokens(Collection<String> grantTokens)
A list of grant tokens.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.
grantTokens
- A list of grant tokens.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.
public void setDryRun(Boolean dryRun)
Checks if your request will succeed. DryRun
is an optional parameter.
To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide.
dryRun
- Checks if your request will succeed. DryRun
is an optional parameter.
To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide.
public Boolean getDryRun()
Checks if your request will succeed. DryRun
is an optional parameter.
To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide.
DryRun
is an optional parameter.
To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide.
public DeriveSharedSecretRequest withDryRun(Boolean dryRun)
Checks if your request will succeed. DryRun
is an optional parameter.
To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide.
dryRun
- Checks if your request will succeed. DryRun
is an optional parameter.
To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide.
public Boolean isDryRun()
Checks if your request will succeed. DryRun
is an optional parameter.
To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide.
DryRun
is an optional parameter.
To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide.
public void setRecipient(RecipientInfo recipient)
A signed attestation
document from an Amazon Web Services Nitro enclave and the encryption algorithm to use with the enclave's
public key. The only valid encryption algorithm is RSAES_OAEP_SHA_256
.
This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To call DeriveSharedSecret for an Amazon Web Services Nitro Enclaves, use the Amazon Web Services Nitro Enclaves SDK to generate the attestation document and then use the Recipient parameter from any Amazon Web Services SDK to provide the attestation document for the enclave.
When you use this parameter, instead of returning a plaintext copy of the shared secret, KMS encrypts the
plaintext shared secret under the public key in the attestation document, and returns the resulting ciphertext in
the CiphertextForRecipient
field in the response. This ciphertext can be decrypted only with the
private key in the enclave. The CiphertextBlob
field in the response contains the encrypted shared
secret derived from the KMS key specified by the KeyId
parameter and public key specified by the
PublicKey
parameter. The SharedSecret
field in the response is null or empty.
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.
recipient
- A signed attestation document from an Amazon Web Services Nitro enclave and the encryption algorithm to use
with the enclave's public key. The only valid encryption algorithm is RSAES_OAEP_SHA_256
.
This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To call DeriveSharedSecret for an Amazon Web Services Nitro Enclaves, use the Amazon Web Services Nitro Enclaves SDK to generate the attestation document and then use the Recipient parameter from any Amazon Web Services SDK to provide the attestation document for the enclave.
When you use this parameter, instead of returning a plaintext copy of the shared secret, KMS encrypts the
plaintext shared secret under the public key in the attestation document, and returns the resulting
ciphertext in the CiphertextForRecipient
field in the response. This ciphertext can be
decrypted only with the private key in the enclave. The CiphertextBlob
field in the response
contains the encrypted shared secret derived from the KMS key specified by the KeyId
parameter and public key specified by the PublicKey
parameter. The SharedSecret
field in the response is null or empty.
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.
public RecipientInfo getRecipient()
A signed attestation
document from an Amazon Web Services Nitro enclave and the encryption algorithm to use with the enclave's
public key. The only valid encryption algorithm is RSAES_OAEP_SHA_256
.
This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To call DeriveSharedSecret for an Amazon Web Services Nitro Enclaves, use the Amazon Web Services Nitro Enclaves SDK to generate the attestation document and then use the Recipient parameter from any Amazon Web Services SDK to provide the attestation document for the enclave.
When you use this parameter, instead of returning a plaintext copy of the shared secret, KMS encrypts the
plaintext shared secret under the public key in the attestation document, and returns the resulting ciphertext in
the CiphertextForRecipient
field in the response. This ciphertext can be decrypted only with the
private key in the enclave. The CiphertextBlob
field in the response contains the encrypted shared
secret derived from the KMS key specified by the KeyId
parameter and public key specified by the
PublicKey
parameter. The SharedSecret
field in the response is null or empty.
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.
RSAES_OAEP_SHA_256
.
This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To call DeriveSharedSecret for an Amazon Web Services Nitro Enclaves, use the Amazon Web Services Nitro Enclaves SDK to generate the attestation document and then use the Recipient parameter from any Amazon Web Services SDK to provide the attestation document for the enclave.
When you use this parameter, instead of returning a plaintext copy of the shared secret, KMS encrypts the
plaintext shared secret under the public key in the attestation document, and returns the resulting
ciphertext in the CiphertextForRecipient
field in the response. This ciphertext can be
decrypted only with the private key in the enclave. The CiphertextBlob
field in the response
contains the encrypted shared secret derived from the KMS key specified by the KeyId
parameter and public key specified by the PublicKey
parameter. The SharedSecret
field in the response is null or empty.
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.
public DeriveSharedSecretRequest withRecipient(RecipientInfo recipient)
A signed attestation
document from an Amazon Web Services Nitro enclave and the encryption algorithm to use with the enclave's
public key. The only valid encryption algorithm is RSAES_OAEP_SHA_256
.
This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To call DeriveSharedSecret for an Amazon Web Services Nitro Enclaves, use the Amazon Web Services Nitro Enclaves SDK to generate the attestation document and then use the Recipient parameter from any Amazon Web Services SDK to provide the attestation document for the enclave.
When you use this parameter, instead of returning a plaintext copy of the shared secret, KMS encrypts the
plaintext shared secret under the public key in the attestation document, and returns the resulting ciphertext in
the CiphertextForRecipient
field in the response. This ciphertext can be decrypted only with the
private key in the enclave. The CiphertextBlob
field in the response contains the encrypted shared
secret derived from the KMS key specified by the KeyId
parameter and public key specified by the
PublicKey
parameter. The SharedSecret
field in the response is null or empty.
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.
recipient
- A signed attestation document from an Amazon Web Services Nitro enclave and the encryption algorithm to use
with the enclave's public key. The only valid encryption algorithm is RSAES_OAEP_SHA_256
.
This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To call DeriveSharedSecret for an Amazon Web Services Nitro Enclaves, use the Amazon Web Services Nitro Enclaves SDK to generate the attestation document and then use the Recipient parameter from any Amazon Web Services SDK to provide the attestation document for the enclave.
When you use this parameter, instead of returning a plaintext copy of the shared secret, KMS encrypts the
plaintext shared secret under the public key in the attestation document, and returns the resulting
ciphertext in the CiphertextForRecipient
field in the response. This ciphertext can be
decrypted only with the private key in the enclave. The CiphertextBlob
field in the response
contains the encrypted shared secret derived from the KMS key specified by the KeyId
parameter and public key specified by the PublicKey
parameter. The SharedSecret
field in the response is null or empty.
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.
public String toString()
toString
in class Object
Object.toString()
public DeriveSharedSecretRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()