Interface DeriveSharedSecretResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DeriveSharedSecretResponse.Builder,DeriveSharedSecretResponse>,KmsResponse.Builder,SdkBuilder<DeriveSharedSecretResponse.Builder,DeriveSharedSecretResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- DeriveSharedSecretResponse
@Mutable @NotThreadSafe public static interface DeriveSharedSecretResponse.Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<DeriveSharedSecretResponse.Builder,DeriveSharedSecretResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DeriveSharedSecretResponse.BuilderciphertextForRecipient(SdkBytes ciphertextForRecipient)The plaintext shared secret encrypted with the public key in the attestation document.DeriveSharedSecretResponse.BuilderkeyAgreementAlgorithm(String keyAgreementAlgorithm)Identifies the key agreement algorithm used to derive the shared secret.DeriveSharedSecretResponse.BuilderkeyAgreementAlgorithm(KeyAgreementAlgorithmSpec keyAgreementAlgorithm)Identifies the key agreement algorithm used to derive the shared secret.DeriveSharedSecretResponse.BuilderkeyId(String keyId)Identifies the KMS key used to derive the shared secret.DeriveSharedSecretResponse.BuilderkeyOrigin(String keyOrigin)The source of the key material for the specified KMS key.DeriveSharedSecretResponse.BuilderkeyOrigin(OriginType keyOrigin)The source of the key material for the specified KMS key.DeriveSharedSecretResponse.BuildersharedSecret(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 Detail
-
keyId
DeriveSharedSecretResponse.Builder keyId(String 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.
-
sharedSecret
DeriveSharedSecretResponse.Builder 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.
If the response includes the
CiphertextForRecipientfield, theSharedSecretfield is null or empty.- Parameters:
sharedSecret- The raw secret derived from the specified key agreement algorithm, private key in the asymmetric KMS key, and your peer's public key.If the response includes the
CiphertextForRecipientfield, theSharedSecretfield is null or empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ciphertextForRecipient
DeriveSharedSecretResponse.Builder ciphertextForRecipient(SdkBytes ciphertextForRecipient)
The plaintext shared secret encrypted with the public key in the attestation document.
This field is included in the response only when the
Recipientparameter 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
Recipientparameter 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
DeriveSharedSecretResponse.Builder keyAgreementAlgorithm(String 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:
KeyAgreementAlgorithmSpec,KeyAgreementAlgorithmSpec
-
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:
KeyAgreementAlgorithmSpec,KeyAgreementAlgorithmSpec
-
keyOrigin
DeriveSharedSecretResponse.Builder keyOrigin(String 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_KMSandEXTERNAL. DeriveSharedSecret does not support KMS keys with aKeyOriginvalue ofAWS_CLOUDHSMorEXTERNAL_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_KMSandEXTERNAL. DeriveSharedSecret does not support KMS keys with aKeyOriginvalue ofAWS_CLOUDHSMorEXTERNAL_KEY_STORE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OriginType,OriginType
-
keyOrigin
DeriveSharedSecretResponse.Builder keyOrigin(OriginType 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_KMSandEXTERNAL. DeriveSharedSecret does not support KMS keys with aKeyOriginvalue ofAWS_CLOUDHSMorEXTERNAL_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_KMSandEXTERNAL. DeriveSharedSecret does not support KMS keys with aKeyOriginvalue ofAWS_CLOUDHSMorEXTERNAL_KEY_STORE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OriginType,OriginType
-
-