Interface DeriveSharedSecretResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DeriveSharedSecretResponse.Builder,
,DeriveSharedSecretResponse> KmsResponse.Builder
,SdkBuilder<DeriveSharedSecretResponse.Builder,
,DeriveSharedSecretResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DeriveSharedSecretResponse
-
Method Summary
Modifier and TypeMethodDescriptionciphertextForRecipient
(SdkBytes ciphertextForRecipient) The plaintext shared secret encrypted with the public key in the attestation document.keyAgreementAlgorithm
(String keyAgreementAlgorithm) Identifies the key agreement algorithm used to derive the shared secret.keyAgreementAlgorithm
(KeyAgreementAlgorithmSpec keyAgreementAlgorithm) Identifies the key agreement algorithm used to derive the shared secret.Identifies the KMS key used to derive the shared secret.The source of the key material for the specified KMS key.keyOrigin
(OriginType keyOrigin) The source of the key material for the specified KMS key.sharedSecret
(SdkBytes sharedSecret) The raw secret derived from the specified key agreement algorithm, private key in the asymmetric KMS key, and your peer's public key.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.kms.model.KmsResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
keyId
Identifies the KMS key used to derive the shared secret.
- Parameters:
keyId
- Identifies the KMS key used to derive the shared secret.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ciphertextForRecipient
The plaintext shared secret encrypted with the public key in the attestation document.
This field is included in the response only when the
Recipient
parameter in the request includes a valid attestation document from an Amazon Web Services Nitro enclave. 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.- Parameters:
ciphertextForRecipient
- The plaintext shared secret encrypted with the public key in the attestation document.This field is included in the response only when the
Recipient
parameter in the request includes a valid attestation document from an Amazon Web Services Nitro enclave. 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyAgreementAlgorithm
Identifies the key agreement algorithm used to derive the shared secret.
- Parameters:
keyAgreementAlgorithm
- Identifies the key agreement algorithm used to derive the shared secret.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
keyAgreementAlgorithm
DeriveSharedSecretResponse.Builder keyAgreementAlgorithm(KeyAgreementAlgorithmSpec keyAgreementAlgorithm) Identifies the key agreement algorithm used to derive the shared secret.
- Parameters:
keyAgreementAlgorithm
- Identifies the key agreement algorithm used to derive the shared secret.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
keyOrigin
The source of the key material for the specified KMS key.
When this value is
AWS_KMS
, KMS created the key material. When this value isEXTERNAL
, the key material was imported or the KMS key doesn't have any key material.The only valid values for DeriveSharedSecret are
AWS_KMS
andEXTERNAL
. DeriveSharedSecret does not support KMS keys with aKeyOrigin
value ofAWS_CLOUDHSM
orEXTERNAL_KEY_STORE
.- Parameters:
keyOrigin
- The source of the key material for the specified KMS key.When this value is
AWS_KMS
, KMS created the key material. When this value isEXTERNAL
, the key material was imported or the KMS key doesn't have any key material.The only valid values for DeriveSharedSecret are
AWS_KMS
andEXTERNAL
. DeriveSharedSecret does not support KMS keys with aKeyOrigin
value ofAWS_CLOUDHSM
orEXTERNAL_KEY_STORE
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
keyOrigin
The source of the key material for the specified KMS key.
When this value is
AWS_KMS
, KMS created the key material. When this value isEXTERNAL
, the key material was imported or the KMS key doesn't have any key material.The only valid values for DeriveSharedSecret are
AWS_KMS
andEXTERNAL
. DeriveSharedSecret does not support KMS keys with aKeyOrigin
value ofAWS_CLOUDHSM
orEXTERNAL_KEY_STORE
.- Parameters:
keyOrigin
- The source of the key material for the specified KMS key.When this value is
AWS_KMS
, KMS created the key material. When this value isEXTERNAL
, the key material was imported or the KMS key doesn't have any key material.The only valid values for DeriveSharedSecret are
AWS_KMS
andEXTERNAL
. DeriveSharedSecret does not support KMS keys with aKeyOrigin
value ofAWS_CLOUDHSM
orEXTERNAL_KEY_STORE
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-