/*
* 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
{
///
/// The role of the key, the algorithm it supports, and the cryptographic operations allowed
/// with the key. This data is immutable after the key is created.
///
public partial class KeyAttributes
{
private KeyAlgorithm _keyAlgorithm;
private KeyClass _keyClass;
private KeyModesOfUse _keyModesOfUse;
private KeyUsage _keyUsage;
///
/// Gets and sets the property KeyAlgorithm.
///
/// The key algorithm to be use during creation of an Amazon Web Services Payment Cryptography
/// key.
///
///
///
/// For symmetric keys, Amazon Web Services Payment Cryptography supports AES
/// and TDES
algorithms. For asymmetric keys, Amazon Web Services Payment
/// Cryptography supports RSA
and ECC_NIST
algorithms.
///
///
[AWSProperty(Required=true)]
public KeyAlgorithm KeyAlgorithm
{
get { return this._keyAlgorithm; }
set { this._keyAlgorithm = value; }
}
// Check to see if KeyAlgorithm property is set
internal bool IsSetKeyAlgorithm()
{
return this._keyAlgorithm != null;
}
///
/// Gets and sets the property KeyClass.
///
/// The type of Amazon Web Services Payment Cryptography key to create, which determines
/// the classification of the cryptographic method and whether Amazon Web Services Payment
/// Cryptography key contains a symmetric key or an asymmetric key pair.
///
///
[AWSProperty(Required=true)]
public KeyClass KeyClass
{
get { return this._keyClass; }
set { this._keyClass = value; }
}
// Check to see if KeyClass property is set
internal bool IsSetKeyClass()
{
return this._keyClass != null;
}
///
/// Gets and sets the property KeyModesOfUse.
///
/// The list of cryptographic operations that you can perform using the key.
///
///
[AWSProperty(Required=true)]
public KeyModesOfUse KeyModesOfUse
{
get { return this._keyModesOfUse; }
set { this._keyModesOfUse = value; }
}
// Check to see if KeyModesOfUse property is set
internal bool IsSetKeyModesOfUse()
{
return this._keyModesOfUse != null;
}
///
/// Gets and sets the property KeyUsage.
///
/// The cryptographic usage of an Amazon Web Services Payment Cryptography key as defined
/// in section A.5.2 of the TR-31 spec.
///
///
[AWSProperty(Required=true)]
public KeyUsage KeyUsage
{
get { return this._keyUsage; }
set { this._keyUsage = value; }
}
// Check to see if KeyUsage property is set
internal bool IsSetKeyUsage()
{
return this._keyUsage != null;
}
}
}