//---------------------------------------------------------------------------- // // 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 { /// ///Represents the Certificate Store Capabilitites of the Intel(R) AMT system. /// [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 { /// /// Default constructor. /// public AMT_PublicKeyManagementCapabilities() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public AMT_PublicKeyManagementCapabilities(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public AMT_PublicKeyManagementCapabilities(IWSManClient client): base(client) { } /// /// Remove CertChainMaxSize field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveCertChainMaxSize() { RemoveField("CertChainMaxSize"); } /// /// Is true if the field CertChainMaxSize exists in the current object, /// otherwise is false. /// public virtual bool CertChainMaxSizeExist { get { return ContainsField("CertChainMaxSize"); } } /// /// Optional, The maximum size (in bytes) of a certificate supported by the internal certificate store. /// [CimField(false, false)] public virtual uint CertChainMaxSize { get { return uint.Parse(this["CertChainMaxSize"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("CertChainMaxSize",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove CommonNameMaxCount field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveCommonNameMaxCount() { RemoveField("CommonNameMaxCount"); } /// /// Is true if the field CommonNameMaxCount exists in the current object, /// otherwise is false. /// public virtual bool CommonNameMaxCountExist { get { return ContainsField("CommonNameMaxCount"); } } /// /// Optional, The maximum number of trusted subject common names supported by the internal certificate store. /// [CimField(false, false)] public virtual uint CommonNameMaxCount { get { return uint.Parse(this["CommonNameMaxCount"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("CommonNameMaxCount",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove CommonNameMaxSize field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveCommonNameMaxSize() { RemoveField("CommonNameMaxSize"); } /// /// Is true if the field CommonNameMaxSize exists in the current object, /// otherwise is false. /// public virtual bool CommonNameMaxSizeExist { get { return ContainsField("CommonNameMaxSize"); } } /// /// Optional, The maximum supported size (in bytes) of a trusted certificate subject common name in the internal certificate store. /// [CimField(false, false)] public virtual uint CommonNameMaxSize { get { return uint.Parse(this["CommonNameMaxSize"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("CommonNameMaxSize",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove MaximumCRLSize field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveMaximumCRLSize() { RemoveField("MaximumCRLSize"); } /// /// Is true if the field MaximumCRLSize exists in the current object, /// otherwise is false. /// public virtual bool MaximumCRLSizeExist { get { return ContainsField("MaximumCRLSize"); } } /// /// Optional, The maximum supported size (in bytes) of the CRL store in the internal certificate store. /// [CimField(false, false)] public virtual uint MaximumCRLSize { get { return uint.Parse(this["MaximumCRLSize"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("MaximumCRLSize",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove RootCertMaxCount field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveRootCertMaxCount() { RemoveField("RootCertMaxCount"); } /// /// Is true if the field RootCertMaxCount exists in the current object, /// otherwise is false. /// public virtual bool RootCertMaxCountExist { get { return ContainsField("RootCertMaxCount"); } } /// /// Optional, The maximum number of trusted root certificates supported by the internal certificate store. /// [CimField(false, false)] public virtual uint RootCertMaxCount { get { return uint.Parse(this["RootCertMaxCount"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("RootCertMaxCount",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove RootCertMaxSize field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveRootCertMaxSize() { RemoveField("RootCertMaxSize"); } /// /// Is true if the field RootCertMaxSize exists in the current object, /// otherwise is false. /// public virtual bool RootCertMaxSizeExist { get { return ContainsField("RootCertMaxSize"); } } /// /// Optional, The maximum supported size (in bytes) of a trusted root certificate in the internal certificate store. /// [CimField(false, false)] public virtual uint RootCertMaxSize { get { return uint.Parse(this["RootCertMaxSize"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("RootCertMaxSize",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove SupportedKeyLengths field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveSupportedKeyLengths() { RemoveField("SupportedKeyLengths"); } /// /// Is true if the field SupportedKeyLengths exists in the current object, /// otherwise is false. /// public virtual bool SupportedKeyLengthsExist { get { return ContainsField("SupportedKeyLengths"); } } /// /// Optional, An array of unsigned integer values, each of which gives the number of bits in a supported RSA key length. /// [CimField(false, false)] public virtual uint[] SupportedKeyLengths { get { return CimTypesUtils.StringArrayToArray(this["SupportedKeyLengths"]); } set { string[] arr = CimTypesUtils.ArrayToStringArray(value); this.SetOrAddField("SupportedKeyLengths", arr); } } /// /// Enumerate instances of AMT_PublicKeyManagementCapabilities class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of AMT_PublicKeyManagementCapabilities objects public static new Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys) { List ret = CimBase.Enumerate(client, cimKeys); return new Collection(ret); } /// /// Enumerate instances of AMT_PublicKeyManagementCapabilities class at an endpoint. /// /// WS-Management client /// Collection of AMT_PublicKeyManagementCapabilities objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of AMT_PublicKeyManagementCapabilities if it is singular. /// Note: This method will succeed only if a single instance of the class exists. /// /// WS-Management client public static new void Delete(IWSManClient client) { CimBase.Delete(client); } /// /// Represents the keys of the AMT_PublicKeyManagementCapabilities class. /// public new class CimKeys : CIM_Capabilities.CimKeys { } } }