/* * 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 { /// /// This is the response object from the GetParametersForExport operation. /// public partial class GetParametersForExportResponse : AmazonWebServiceResponse { private string _exportToken; private DateTime? _parametersValidUntilTimestamp; private KeyAlgorithm _signingKeyAlgorithm; private string _signingKeyCertificate; private string _signingKeyCertificateChain; /// /// Gets and sets the property ExportToken. /// /// The export token to initiate key export from Amazon Web Services Payment Cryptography. /// The export token 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 ParametersValidUntilTimestamp. /// /// The validity period of the export token. /// /// [AWSProperty(Required=true)] public DateTime ParametersValidUntilTimestamp { get { return this._parametersValidUntilTimestamp.GetValueOrDefault(); } set { this._parametersValidUntilTimestamp = value; } } // Check to see if ParametersValidUntilTimestamp property is set internal bool IsSetParametersValidUntilTimestamp() { return this._parametersValidUntilTimestamp.HasValue; } /// /// Gets and sets the property SigningKeyAlgorithm. /// /// The algorithm of the signing key certificate for use in TR-34 key block generation. /// RSA_2048 is the only signing key algorithm allowed. /// /// [AWSProperty(Required=true)] public KeyAlgorithm SigningKeyAlgorithm { get { return this._signingKeyAlgorithm; } set { this._signingKeyAlgorithm = value; } } // Check to see if SigningKeyAlgorithm property is set internal bool IsSetSigningKeyAlgorithm() { return this._signingKeyAlgorithm != null; } /// /// Gets and sets the property SigningKeyCertificate. /// /// The signing key certificate of the public key for signature within the TR-34 key block /// cryptogram. The certificate expires after 7 days. /// /// [AWSProperty(Required=true, Sensitive=true, Min=1, Max=32768)] public string SigningKeyCertificate { get { return this._signingKeyCertificate; } set { this._signingKeyCertificate = value; } } // Check to see if SigningKeyCertificate property is set internal bool IsSetSigningKeyCertificate() { return this._signingKeyCertificate != null; } /// /// Gets and sets the property SigningKeyCertificateChain. /// /// The certificate chain that signed the signing key certificate. This is the root certificate /// authority (CA) within your service account. /// /// [AWSProperty(Required=true, Sensitive=true, Min=1, Max=32768)] public string SigningKeyCertificateChain { get { return this._signingKeyCertificateChain; } set { this._signingKeyCertificateChain = value; } } // Check to see if SigningKeyCertificateChain property is set internal bool IsSetSigningKeyCertificateChain() { return this._signingKeyCertificateChain != null; } } }