//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: AMT_TLSSettingData.cs
//
// Contents: The AMT_TLSSettingData class represents configuration-related and operational parameters for the TLS service in the Intel(R) AMT.
// This file was automatically generated from AMT_TLSSettingData.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
{
///
///The AMT_TLSSettingData class represents configuration-related and operational parameters for the TLS service in the Intel(R) AMT.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_TLSSettingData")]
[System.Xml.Serialization.XmlRootAttribute("AMT_TLSSettingData", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_TLSSettingData", IsNullable=false)]
public class AMT_TLSSettingData : CIM_SettingData
{
///
/// Default constructor.
///
public AMT_TLSSettingData() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public AMT_TLSSettingData(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public AMT_TLSSettingData(IWSManClient client): base(client)
{
}
///
/// Remove AcceptNonSecureConnections field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveAcceptNonSecureConnections()
{
RemoveField("AcceptNonSecureConnections");
}
///
/// Is true if the field AcceptNonSecureConnections exists in the current object,
/// otherwise is false.
///
public virtual bool AcceptNonSecureConnectionsExist
{
get
{
return ContainsField("AcceptNonSecureConnections");
}
}
///
/// Optional, This setting defines once TLS is enabled and configured whether non-secure EOI/WSMAN connections are still accepted by FW on ports 16992 and 623. If AcceptNonSecureConnections is set to TRUE then non-secure connections are still accepted. If set to FALSE then non-secure connections are rejected. This setting may be set per interface for the local and network interfaces.
///
[CimField(false, false)]
public virtual bool AcceptNonSecureConnections
{
get
{
return bool.Parse(this["AcceptNonSecureConnections"][0]);
}
set
{
this.SetOrAddField("AcceptNonSecureConnections",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
///
/// Required, Administrator-settable property that determines whether or not TLS is used on the associated service access point.
///
[CimField(false, true)]
public virtual bool Enabled
{
get
{
return bool.Parse(this["Enabled"][0]);
}
set
{
this.SetOrAddField("Enabled",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
///
/// Remove MutualAuthentication field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveMutualAuthentication()
{
RemoveField("MutualAuthentication");
}
///
/// Is true if the field MutualAuthentication exists in the current object,
/// otherwise is false.
///
public virtual bool MutualAuthenticationExist
{
get
{
return ContainsField("MutualAuthentication");
}
}
///
/// Optional, Adminstrator-settable property that determines whether or not mutual authentication is used at the TLS layer is used on the associated service access point. If False, then only the server authenticates itself at the TLS layer.
///
[CimField(false, false)]
public virtual bool MutualAuthentication
{
get
{
return bool.Parse(this["MutualAuthentication"][0]);
}
set
{
this.SetOrAddField("MutualAuthentication",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
///
/// Remove NonSecureConnectionsSupported field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveNonSecureConnectionsSupported()
{
RemoveField("NonSecureConnectionsSupported");
}
///
/// Is true if the field NonSecureConnectionsSupported exists in the current object,
/// otherwise is false.
///
public virtual bool NonSecureConnectionsSupportedExist
{
get
{
return ContainsField("NonSecureConnectionsSupported");
}
}
///
/// Optional, This setting define whether a non secure - aka direct tcpis supported or not - not supported from RPL on.This setting is read only.
///
[CimField(false, false)]
public virtual bool NonSecureConnectionsSupported
{
get
{
return bool.Parse(this["NonSecureConnectionsSupported"][0]);
}
set
{
this.SetOrAddField("NonSecureConnectionsSupported",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
///
/// Remove TrustedCN field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveTrustedCN()
{
RemoveField("TrustedCN");
}
///
/// Is true if the field TrustedCN exists in the current object,
/// otherwise is false.
///
public virtual bool TrustedCNExist
{
get
{
return ContainsField("TrustedCN");
}
}
///
/// Optional, An array of strings, used to validate the CN subfield of the subject field in X.509 certificates presented to Intel(R) AMT in the TLS handshake. This value must comply with the requirements of RFC 1035.
///
[CimField(false, false)]
public virtual string[] TrustedCN
{
get
{
return CimTypesUtils.StringArrayToArray(this["TrustedCN"]);
}
set
{
string[] arr = CimTypesUtils.ArrayToStringArray(value);
this.SetOrAddField("TrustedCN", arr);
}
}
///
/// Remove X509IssuerName field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveX509IssuerName()
{
RemoveField("X509IssuerName");
}
///
/// Is true if the field X509IssuerName exists in the current object,
/// otherwise is false.
///
public virtual bool X509IssuerNameExist
{
get
{
return ContainsField("X509IssuerName");
}
}
///
/// Optional, The Issuer Name field in the X.509 certificate.
///
[CimField(false, false)]
public virtual string X509IssuerName
{
get
{
return this.GetField("X509IssuerName")[0];
}
set
{
this.SetOrAddField("X509IssuerName",value);
}
}
///
/// Remove X509SerialNumber field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveX509SerialNumber()
{
RemoveField("X509SerialNumber");
}
///
/// Is true if the field X509SerialNumber exists in the current object,
/// otherwise is false.
///
public virtual bool X509SerialNumberExist
{
get
{
return ContainsField("X509SerialNumber");
}
}
///
/// Optional, The Serial Numebr field in the X.509 certificate.
///
[CimField(false, false)]
public virtual byte[] X509SerialNumber
{
get
{
return Convert.FromBase64String(this.GetField("X509SerialNumber")[0]); }
set
{
this.SetOrAddField("X509SerialNumber",Convert.ToBase64String(value));
}
}
///
/// Enumerate instances of AMT_TLSSettingData class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of AMT_TLSSettingData 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_TLSSettingData class at an endpoint.
///
/// WS-Management client
/// Collection of AMT_TLSSettingData objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of AMT_TLSSettingData 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_TLSSettingData class.
///
public new class CimKeys : CIM_SettingData.CimKeys
{
}
}
}