Interface DeriveSharedSecretResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<DeriveSharedSecretResponse.Builder,DeriveSharedSecretResponse>, KmsResponse.Builder, SdkBuilder<DeriveSharedSecretResponse.Builder,DeriveSharedSecretResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
DeriveSharedSecretResponse

public static interface DeriveSharedSecretResponse.Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<DeriveSharedSecretResponse.Builder,DeriveSharedSecretResponse>
  • 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.
    • 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 CiphertextForRecipient field, the SharedSecret field 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 CiphertextForRecipient field, the SharedSecret field 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 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

      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:
    • 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 is EXTERNAL, the key material was imported or the KMS key doesn't have any key material.

      The only valid values for DeriveSharedSecret are AWS_KMS and EXTERNAL. DeriveSharedSecret does not support KMS keys with a KeyOrigin value of AWS_CLOUDHSM or EXTERNAL_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 is EXTERNAL, the key material was imported or the KMS key doesn't have any key material.

      The only valid values for DeriveSharedSecret are AWS_KMS and EXTERNAL. DeriveSharedSecret does not support KMS keys with a KeyOrigin value of AWS_CLOUDHSM or EXTERNAL_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 is EXTERNAL, the key material was imported or the KMS key doesn't have any key material.

      The only valid values for DeriveSharedSecret are AWS_KMS and EXTERNAL. DeriveSharedSecret does not support KMS keys with a KeyOrigin value of AWS_CLOUDHSM or EXTERNAL_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 is EXTERNAL, the key material was imported or the KMS key doesn't have any key material.

      The only valid values for DeriveSharedSecret are AWS_KMS and EXTERNAL. DeriveSharedSecret does not support KMS keys with a KeyOrigin value of AWS_CLOUDHSM or EXTERNAL_KEY_STORE.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: