/* * 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 payment-cryptography-2021-09-14.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.PaymentCryptography.Model { /// /// Parameter information for key material export using TR-34 standard. /// public partial class ExportTr34KeyBlock { private string _certificateAuthorityPublicKeyIdentifier; private string _exportToken; private Tr34KeyBlockFormat _keyBlockFormat; private string _randomNonce; private string _wrappingKeyCertificate; /// /// Gets and sets the property CertificateAuthorityPublicKeyIdentifier. /// /// The KeyARN of the certificate chain that signs the wrapping key certificate /// during TR-34 key export. /// /// [AWSProperty(Required=true, Min=7, Max=322)] public string CertificateAuthorityPublicKeyIdentifier { get { return this._certificateAuthorityPublicKeyIdentifier; } set { this._certificateAuthorityPublicKeyIdentifier = value; } } // Check to see if CertificateAuthorityPublicKeyIdentifier property is set internal bool IsSetCertificateAuthorityPublicKeyIdentifier() { return this._certificateAuthorityPublicKeyIdentifier != null; } /// /// Gets and sets the property ExportToken. /// /// The export token to initiate key export from Amazon Web Services Payment Cryptography. /// It also contains the signing key certificate that will sign the wrapped key during /// TR-34 key block generation. Call GetParametersForExport to receive an export /// token. It expires after 7 days. You can use the same export token to export multiple /// keys from the same service account. /// /// [AWSProperty(Required=true)] public string ExportToken { get { return this._exportToken; } set { this._exportToken = value; } } // Check to see if ExportToken property is set internal bool IsSetExportToken() { return this._exportToken != null; } /// /// Gets and sets the property KeyBlockFormat. /// /// The format of key block that Amazon Web Services Payment Cryptography will use during /// key export. /// /// [AWSProperty(Required=true)] public Tr34KeyBlockFormat KeyBlockFormat { get { return this._keyBlockFormat; } set { this._keyBlockFormat = value; } } // Check to see if KeyBlockFormat property is set internal bool IsSetKeyBlockFormat() { return this._keyBlockFormat != null; } /// /// Gets and sets the property RandomNonce. /// /// A random number value that is unique to the TR-34 key block generated using 2 pass. /// The operation will fail, if a random nonce value is not provided for a TR-34 key block /// generated using 2 pass. /// /// [AWSProperty(Min=16, Max=16)] public string RandomNonce { get { return this._randomNonce; } set { this._randomNonce = value; } } // Check to see if RandomNonce property is set internal bool IsSetRandomNonce() { return this._randomNonce != null; } /// /// Gets and sets the property WrappingKeyCertificate. /// /// The KeyARN of the wrapping key certificate. Amazon Web Services Payment /// Cryptography uses this certificate to wrap the key under export. /// /// [AWSProperty(Required=true, Sensitive=true, Min=1, Max=32768)] public string WrappingKeyCertificate { get { return this._wrappingKeyCertificate; } set { this._wrappingKeyCertificate = value; } } // Check to see if WrappingKeyCertificate property is set internal bool IsSetWrappingKeyCertificate() { return this._wrappingKeyCertificate != null; } } }