592 lines
16 KiB
C#
592 lines
16 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: AMT_8021XProfile.cs
|
|
//
|
|
// Contents: This class represents a 802.1X profile in the Intel(R) AMT system.
|
|
// This file was automatically generated from AMT_8021XProfile.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>
|
|
///This class represents a 802.1X profile in the Intel(R) AMT system.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_8021XProfile")]
|
|
[System.Xml.Serialization.XmlRootAttribute("AMT_8021XProfile", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_8021XProfile", IsNullable=false)]
|
|
public class AMT_8021XProfile : CIM_SettingData
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public AMT_8021XProfile() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public AMT_8021XProfile(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_8021XProfile(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Remove ActiveInS0 field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveActiveInS0()
|
|
{
|
|
RemoveField("ActiveInS0");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ActiveInS0 exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ActiveInS0Exist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ActiveInS0");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Indicates the activity setting of the 802.1X module in S0 state. The default value for this property is 'true'.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual bool ActiveInS0
|
|
{
|
|
get
|
|
{
|
|
return bool.Parse(this["ActiveInS0"][0]);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("ActiveInS0",value.ToString().ToLower(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove AuthenticationProtocol field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveAuthenticationProtocol()
|
|
{
|
|
RemoveField("AuthenticationProtocol");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field AuthenticationProtocol exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool AuthenticationProtocolExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("AuthenticationProtocol");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Identifies the authentication protocol used to authenticate the access requestor to the AAA server.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort AuthenticationProtocol
|
|
{
|
|
get
|
|
{
|
|
return ushort.Parse(this["AuthenticationProtocol"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("AuthenticationProtocol",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove ClientCertificate field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveClientCertificate()
|
|
{
|
|
RemoveField("ClientCertificate");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ClientCertificate exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ClientCertificateExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ClientCertificate");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The client certificate that should be used by the profile.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual CimReference ClientCertificate
|
|
{
|
|
get
|
|
{
|
|
string innerXML = this.GetField("ClientCertificate")[0];
|
|
CimReference epr = new CimReference("ClientCertificate", XmlNamespace, innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("ClientCertificate",value.Serialize(false));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove Domain field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveDomain()
|
|
{
|
|
RemoveField("Domain");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field Domain exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool DomainExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("Domain");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The domain within which Username is unique.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string Domain
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("Domain")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("Domain",value);
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Required, Indicates whether the 802.1x profile is enabled.
|
|
/// </summary>
|
|
[CimField(false, true)]
|
|
public virtual bool Enabled
|
|
{
|
|
get
|
|
{
|
|
return bool.Parse(this["Enabled"][0]);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("Enabled",value.ToString().ToLower(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove PACPassword field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemovePACPassword()
|
|
{
|
|
RemoveField("PACPassword");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field PACPassword exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool PACPasswordExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("PACPassword");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Optional password to extract the PAC (Protected Access Credential)information from the PAC data.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string PACPassword
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("PACPassword")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("PACPassword",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove Password field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemovePassword()
|
|
{
|
|
RemoveField("Password");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field Password exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool PasswordExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("Password");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The password associated with the user identified by Username and Domain.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string Password
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("Password")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("Password",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove ProtectedAccessCredential field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveProtectedAccessCredential()
|
|
{
|
|
RemoveField("ProtectedAccessCredential");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ProtectedAccessCredential exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ProtectedAccessCredentialExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ProtectedAccessCredential");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, A credential used by the supplicant and AAA server to establish a mutually authenticated encrypted tunnel for confidential user authentication.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual byte[] ProtectedAccessCredential
|
|
{
|
|
get
|
|
{
|
|
return Convert.FromBase64String(this.GetField("ProtectedAccessCredential")[0]); }
|
|
set
|
|
{
|
|
this.SetOrAddField("ProtectedAccessCredential",Convert.ToBase64String(value));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove PxeTimeout field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemovePxeTimeout()
|
|
{
|
|
RemoveField("PxeTimeout");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field PxeTimeout exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool PxeTimeoutExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("PxeTimeout");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Timeout in seconds, in which the Intel(R) AMT will hold an authenticated 802.1X session. During the defined period, Intel(R) AMT manages the 802.1X negotiation while a PXE boot takes place. After the timeout, control of the negotiation passes to the host.
|
|
/// The maximum value is 86400 seconds (one day).
|
|
/// A value of 0 disables the feature.
|
|
/// If this optional value is omitted, Intel(R) AMT sets a default value of 120 seconds.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint PxeTimeout
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["PxeTimeout"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("PxeTimeout",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove RoamingIdentity field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveRoamingIdentity()
|
|
{
|
|
RemoveField("RoamingIdentity");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field RoamingIdentity exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool RoamingIdentityExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("RoamingIdentity");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, A string presented to the authentication server in 802.1x protocol exchange. The AAA server determines the format of this string. Formats supported by AAA servers include: username@domain.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string RoamingIdentity
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("RoamingIdentity")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("RoamingIdentity",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove ServerCertificateIssuer field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveServerCertificateIssuer()
|
|
{
|
|
RemoveField("ServerCertificateIssuer");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ServerCertificateIssuer exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ServerCertificateIssuerExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ServerCertificateIssuer");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The trusted root CA that should be used while verifying the server certificate.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual CimReference ServerCertificateIssuer
|
|
{
|
|
get
|
|
{
|
|
string innerXML = this.GetField("ServerCertificateIssuer")[0];
|
|
CimReference epr = new CimReference("ServerCertificateIssuer", XmlNamespace, innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("ServerCertificateIssuer",value.Serialize(false));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove ServerCertificateName field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveServerCertificateName()
|
|
{
|
|
RemoveField("ServerCertificateName");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ServerCertificateName exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ServerCertificateNameExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ServerCertificateName");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The name compared against the subject name field in the certificate provided by the AAA server. This name is either the full name of the AAA server, in which case ServerCertificateNameComparison is set to "FullName", or it is the domain suffix of the AAA server, in which case ServerCertificateNameComparison is set to "DomainSuffix"
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string ServerCertificateName
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("ServerCertificateName")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("ServerCertificateName",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove ServerCertificateNameComparison field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveServerCertificateNameComparison()
|
|
{
|
|
RemoveField("ServerCertificateNameComparison");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ServerCertificateNameComparison exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ServerCertificateNameComparisonExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ServerCertificateNameComparison");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Determines the comparison algorithm used between the ServerCertificateName value and the subject name field of the certificate presented by the AAA server.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort ServerCertificateNameComparison
|
|
{
|
|
get
|
|
{
|
|
return ushort.Parse(this["ServerCertificateNameComparison"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("ServerCertificateNameComparison",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove Username field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveUsername()
|
|
{
|
|
RemoveField("Username");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field Username exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool UsernameExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("Username");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Within the domain specified by Domain, Identifies the user that is requesting access to the network.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string Username
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("Username")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("Username",value);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_8021XProfile 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_8021XProfile objects</returns>
|
|
public static new Collection<AMT_8021XProfile> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<AMT_8021XProfile> ret = CimBase.Enumerate<AMT_8021XProfile>(client, cimKeys);
|
|
return new Collection<AMT_8021XProfile>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_8021XProfile class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of AMT_8021XProfile objects</returns>
|
|
public static new Collection<AMT_8021XProfile> Enumerate(IWSManClient client)
|
|
{
|
|
List<AMT_8021XProfile> ret = CimBase.Enumerate<AMT_8021XProfile>(client);
|
|
return new Collection<AMT_8021XProfile>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of AMT_8021XProfile 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_8021XProfile>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the AMT_8021XProfile class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_SettingData.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|