354 lines
10 KiB
C#
354 lines
10 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: AMT_PublicKeyManagementCapabilities.cs
|
|
//
|
|
// Contents: Represents the Certificate Store Capabilitites of the Intel(R) AMT system.
|
|
// This file was automatically generated from AMT_PublicKeyManagementCapabilities.mof
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
using System.Text;
|
|
using System.Globalization;
|
|
using System.Xml.Serialization;
|
|
using System.IO;
|
|
using Intel.Manageability.WSManagement;
|
|
using Intel.Manageability.Cim.Untyped;
|
|
|
|
|
|
namespace Intel.Manageability.Cim.Typed
|
|
{
|
|
/// <summary>
|
|
///Represents the Certificate Store Capabilitites of the Intel(R) AMT system.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_PublicKeyManagementCapabilities")]
|
|
[System.Xml.Serialization.XmlRootAttribute("AMT_PublicKeyManagementCapabilities", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_PublicKeyManagementCapabilities", IsNullable=false)]
|
|
public class AMT_PublicKeyManagementCapabilities : CIM_Capabilities
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public AMT_PublicKeyManagementCapabilities() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public AMT_PublicKeyManagementCapabilities(string xml): base((IWSManClient)null)
|
|
{
|
|
this.Deserialize(xml);
|
|
}
|
|
/// <summary>
|
|
/// Constructor which recieves a Ws-Management client object.
|
|
/// </summary>
|
|
/// <param name="client">Ws-Management client</param>
|
|
public AMT_PublicKeyManagementCapabilities(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Remove CertChainMaxSize field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveCertChainMaxSize()
|
|
{
|
|
RemoveField("CertChainMaxSize");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field CertChainMaxSize exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool CertChainMaxSizeExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("CertChainMaxSize");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The maximum size (in bytes) of a certificate supported by the internal certificate store.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint CertChainMaxSize
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["CertChainMaxSize"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("CertChainMaxSize",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove CommonNameMaxCount field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveCommonNameMaxCount()
|
|
{
|
|
RemoveField("CommonNameMaxCount");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field CommonNameMaxCount exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool CommonNameMaxCountExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("CommonNameMaxCount");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The maximum number of trusted subject common names supported by the internal certificate store.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint CommonNameMaxCount
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["CommonNameMaxCount"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("CommonNameMaxCount",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove CommonNameMaxSize field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveCommonNameMaxSize()
|
|
{
|
|
RemoveField("CommonNameMaxSize");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field CommonNameMaxSize exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool CommonNameMaxSizeExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("CommonNameMaxSize");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The maximum supported size (in bytes) of a trusted certificate subject common name in the internal certificate store.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint CommonNameMaxSize
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["CommonNameMaxSize"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("CommonNameMaxSize",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove MaximumCRLSize field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveMaximumCRLSize()
|
|
{
|
|
RemoveField("MaximumCRLSize");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field MaximumCRLSize exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool MaximumCRLSizeExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("MaximumCRLSize");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The maximum supported size (in bytes) of the CRL store in the internal certificate store.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint MaximumCRLSize
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["MaximumCRLSize"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("MaximumCRLSize",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove RootCertMaxCount field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveRootCertMaxCount()
|
|
{
|
|
RemoveField("RootCertMaxCount");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field RootCertMaxCount exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool RootCertMaxCountExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("RootCertMaxCount");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The maximum number of trusted root certificates supported by the internal certificate store.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint RootCertMaxCount
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["RootCertMaxCount"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("RootCertMaxCount",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove RootCertMaxSize field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveRootCertMaxSize()
|
|
{
|
|
RemoveField("RootCertMaxSize");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field RootCertMaxSize exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool RootCertMaxSizeExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("RootCertMaxSize");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The maximum supported size (in bytes) of a trusted root certificate in the internal certificate store.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint RootCertMaxSize
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["RootCertMaxSize"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("RootCertMaxSize",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove SupportedKeyLengths field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveSupportedKeyLengths()
|
|
{
|
|
RemoveField("SupportedKeyLengths");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field SupportedKeyLengths exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool SupportedKeyLengthsExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("SupportedKeyLengths");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, An array of unsigned integer values, each of which gives the number of bits in a supported RSA key length.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint[] SupportedKeyLengths
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<uint>(this["SupportedKeyLengths"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<uint>(value);
|
|
this.SetOrAddField("SupportedKeyLengths", arr);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_PublicKeyManagementCapabilities class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <param name="cimKeys">Keys for selecting the instances</param>
|
|
/// <returns>Collection of AMT_PublicKeyManagementCapabilities objects</returns>
|
|
public static new Collection<AMT_PublicKeyManagementCapabilities> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<AMT_PublicKeyManagementCapabilities> ret = CimBase.Enumerate<AMT_PublicKeyManagementCapabilities>(client, cimKeys);
|
|
return new Collection<AMT_PublicKeyManagementCapabilities>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_PublicKeyManagementCapabilities class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of AMT_PublicKeyManagementCapabilities objects</returns>
|
|
public static new Collection<AMT_PublicKeyManagementCapabilities> Enumerate(IWSManClient client)
|
|
{
|
|
List<AMT_PublicKeyManagementCapabilities> ret = CimBase.Enumerate<AMT_PublicKeyManagementCapabilities>(client);
|
|
return new Collection<AMT_PublicKeyManagementCapabilities>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of AMT_PublicKeyManagementCapabilities if it is singular.
|
|
/// Note: This method will succeed only if a single instance of the class exists.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
public static new void Delete(IWSManClient client)
|
|
{
|
|
CimBase.Delete<AMT_PublicKeyManagementCapabilities>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the AMT_PublicKeyManagementCapabilities class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_Capabilities.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|