/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the kms-2014-11-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.KeyManagementService.Model { /// /// 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. /// /// public partial class RecipientInfo { private MemoryStream _attestationDocument; private KeyEncryptionMechanism _keyEncryptionAlgorithm; /// /// Gets and sets the property AttestationDocument. /// /// The attestation document for an Amazon Web Services Nitro Enclave. This document includes /// the enclave's public key. /// /// [AWSProperty(Min=1, Max=262144)] public MemoryStream AttestationDocument { get { return this._attestationDocument; } set { this._attestationDocument = value; } } // Check to see if AttestationDocument property is set internal bool IsSetAttestationDocument() { return this._attestationDocument != null; } /// /// Gets and sets the property 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. /// /// public KeyEncryptionMechanism KeyEncryptionAlgorithm { get { return this._keyEncryptionAlgorithm; } set { this._keyEncryptionAlgorithm = value; } } // Check to see if KeyEncryptionAlgorithm property is set internal bool IsSetKeyEncryptionAlgorithm() { return this._keyEncryptionAlgorithm != null; } } }