/*
* 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
{
///
/// Container for the parameters to the GetParametersForImport operation.
/// Gets the import token and the wrapping key certificate to initiate a TR-34 key import
/// into Amazon Web Services Payment Cryptography.
///
///
///
/// The wrapping key certificate wraps the key under import within the TR-34 key payload.
/// The import token and wrapping key certificate must be in place and operational before
/// calling ImportKey. The import token expires in 7 days. The same import token
/// can be used to import multiple keys into your service account.
///
///
///
/// Cross-account use: This operation can't be used across different Amazon Web
/// Services accounts.
///
///
///
/// Related operations:
///
///
///
public partial class GetParametersForImportRequest : AmazonPaymentCryptographyRequest
{
private KeyMaterialType _keyMaterialType;
private KeyAlgorithm _wrappingKeyAlgorithm;
///
/// Gets and sets the property KeyMaterialType.
///
/// The key block format type such as TR-34 or TR-31 to use during key material import.
/// Import token is only required for TR-34 key import TR34_KEY_BLOCK
. Import
/// token is not required for TR-31 key import.
///
///
[AWSProperty(Required=true)]
public KeyMaterialType KeyMaterialType
{
get { return this._keyMaterialType; }
set { this._keyMaterialType = value; }
}
// Check to see if KeyMaterialType property is set
internal bool IsSetKeyMaterialType()
{
return this._keyMaterialType != null;
}
///
/// Gets and sets the property WrappingKeyAlgorithm.
///
/// The wrapping key algorithm to generate a wrapping key certificate. This certificate
/// wraps the key under import within the TR-34 key block cryptogram. RSA_2048
/// is the only wrapping key algorithm allowed.
///
///
[AWSProperty(Required=true)]
public KeyAlgorithm WrappingKeyAlgorithm
{
get { return this._wrappingKeyAlgorithm; }
set { this._wrappingKeyAlgorithm = value; }
}
// Check to see if WrappingKeyAlgorithm property is set
internal bool IsSetWrappingKeyAlgorithm()
{
return this._wrappingKeyAlgorithm != null;
}
}
}