661 lines
18 KiB
C#
661 lines
18 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: AMT_KerberosSettingData.cs
|
|
//
|
|
// Contents: The AMT_KerberosSettingData class represents configuration-related and operational parameters for the kerberos service in the Intel(R) AMT.
|
|
// This file was automatically generated from AMT_KerberosSettingData.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>
|
|
///The AMT_KerberosSettingData class represents configuration-related and operational parameters for the kerberos service in the Intel(R) AMT.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_KerberosSettingData")]
|
|
[System.Xml.Serialization.XmlRootAttribute("AMT_KerberosSettingData", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_KerberosSettingData", IsNullable=false)]
|
|
public class AMT_KerberosSettingData : CIM_SettingData
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public AMT_KerberosSettingData() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public AMT_KerberosSettingData(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_KerberosSettingData(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Remove ConfiguredEncryptionAlgorithms field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveConfiguredEncryptionAlgorithms()
|
|
{
|
|
RemoveField("ConfiguredEncryptionAlgorithms");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ConfiguredEncryptionAlgorithms exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ConfiguredEncryptionAlgorithmsExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ConfiguredEncryptionAlgorithms");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, A 16-bit enumeration values that identifier the configured encryption algorithms used in Kerberos authentication.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort[] ConfiguredEncryptionAlgorithms
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<ushort>(this["ConfiguredEncryptionAlgorithms"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<ushort>(value);
|
|
this.SetOrAddField("ConfiguredEncryptionAlgorithms", arr);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove EncryptionAlgorithm field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveEncryptionAlgorithm()
|
|
{
|
|
RemoveField("EncryptionAlgorithm");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field EncryptionAlgorithm exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool EncryptionAlgorithmExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("EncryptionAlgorithm");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, A 16-bit enumeration value that identifiers the encryption algorithm used in Kerberos authentication.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort EncryptionAlgorithm
|
|
{
|
|
get
|
|
{
|
|
return ushort.Parse(this["EncryptionAlgorithm"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("EncryptionAlgorithm",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove IterationCount field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveIterationCount()
|
|
{
|
|
RemoveField("IterationCount");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field IterationCount exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool IterationCountExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("IterationCount");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Can be used when the key generation method is chosen (RFC 3961,3962)
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint IterationCount
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["IterationCount"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("IterationCount",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove KeyVersion field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveKeyVersion()
|
|
{
|
|
RemoveField("KeyVersion");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field KeyVersion exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool KeyVersionExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("KeyVersion");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Key version number. User can update the value each time the master key is changed.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint KeyVersion
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["KeyVersion"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("KeyVersion",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Required, Indicates whether Kerberos authentication is enabled or disable.
|
|
/// </summary>
|
|
[CimField(false, true)]
|
|
public virtual bool KrbEnabled
|
|
{
|
|
get
|
|
{
|
|
return bool.Parse(this["KrbEnabled"][0]);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("KrbEnabled",value.ToString().ToLower(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove MasterKey field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveMasterKey()
|
|
{
|
|
RemoveField("MasterKey");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field MasterKey exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool MasterKeyExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("MasterKey");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, A 128-bit binary key value. MasterKey cannot be used if the key generation method is used (using the Passphrase property)
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual byte[] MasterKey
|
|
{
|
|
get
|
|
{
|
|
return Convert.FromBase64String(this.GetField("MasterKey")[0]); }
|
|
set
|
|
{
|
|
this.SetOrAddField("MasterKey",Convert.ToBase64String(value));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove MaximumClockTolerance field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveMaximumClockTolerance()
|
|
{
|
|
RemoveField("MaximumClockTolerance");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field MaximumClockTolerance exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool MaximumClockToleranceExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("MaximumClockTolerance");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The number of minutes by which the clocks of the Intel(R) AMT device and the client and KDC can be out of sync - typically 5 minutes.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint MaximumClockTolerance
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["MaximumClockTolerance"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("MaximumClockTolerance",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove Passphrase field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemovePassphrase()
|
|
{
|
|
RemoveField("Passphrase");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field Passphrase exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool PassphraseExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("Passphrase");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Used when the key generation method is chosen (RFC 3961,3962). Salt and IterationCount must be supplied also.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string Passphrase
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("Passphrase")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("Passphrase",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove RealmName field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveRealmName()
|
|
{
|
|
RemoveField("RealmName");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field RealmName exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool RealmNameExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("RealmName");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Kerberos Realm name.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string RealmName
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("RealmName")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("RealmName",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove Salt field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveSalt()
|
|
{
|
|
RemoveField("Salt");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field Salt exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool SaltExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("Salt");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Used when the key generation method is chosen (RFC 3961,3962)
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string Salt
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("Salt")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("Salt",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove ServicePrincipalName field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveServicePrincipalName()
|
|
{
|
|
RemoveField("ServicePrincipalName");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ServicePrincipalName exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ServicePrincipalNameExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ServicePrincipalName");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, An array of strings, each of which names a distinct service principal.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string[] ServicePrincipalName
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<string>(this["ServicePrincipalName"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<string>(value);
|
|
this.SetOrAddField("ServicePrincipalName", arr);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove ServicePrincipalProtocol field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveServicePrincipalProtocol()
|
|
{
|
|
RemoveField("ServicePrincipalProtocol");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ServicePrincipalProtocol exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ServicePrincipalProtocolExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ServicePrincipalProtocol");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, An array of 16-bit enumeration values, each of which corresponds to the string in the same position of ServicePrincipalName.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort[] ServicePrincipalProtocol
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<ushort>(this["ServicePrincipalProtocol"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<ushort>(value);
|
|
this.SetOrAddField("ServicePrincipalProtocol", arr);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove SupportedEncryptionAlgorithms field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveSupportedEncryptionAlgorithms()
|
|
{
|
|
RemoveField("SupportedEncryptionAlgorithms");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field SupportedEncryptionAlgorithms exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool SupportedEncryptionAlgorithmsExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("SupportedEncryptionAlgorithms");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, A 16-bit enumeration values that identifier the supported encryption algorithms used in Kerberos authentication.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort[] SupportedEncryptionAlgorithms
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<ushort>(this["SupportedEncryptionAlgorithms"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<ushort>(value);
|
|
this.SetOrAddField("SupportedEncryptionAlgorithms", arr);
|
|
}
|
|
}
|
|
/// <summary>
|
|
///GetCredentialCacheState gets the current state of the credential caching functionality
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
|
|
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_KerberosSettingData", IsNullable=false)]
|
|
private class GetCredentialCacheState_INPUT : CimParams
|
|
{
|
|
public GetCredentialCacheState_INPUT(string ns) : base(ns)
|
|
{
|
|
}
|
|
|
|
}
|
|
/// <summary>
|
|
///GetCredentialCacheState gets the current state of the credential caching functionality
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
|
|
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_KerberosSettingData", IsNullable=false)]
|
|
private class GetCredentialCacheState_OUTPUT : CimParams
|
|
{
|
|
public GetCredentialCacheState_OUTPUT() : base("")
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Required, Output state of the credential caching functionality
|
|
/// </summary>
|
|
[CimField(false,true)]
|
|
public virtual bool Enabled
|
|
{
|
|
get
|
|
{
|
|
return bool.Parse(this["Enabled"][0]);
|
|
}
|
|
}
|
|
}
|
|
/// <summary>
|
|
///GetCredentialCacheState gets the current state of the credential caching functionality
|
|
/// </summary>
|
|
/// <param name="outEnabled">OUT - Output state of the credential caching functionality</param>
|
|
/// <returns>
|
|
/// </returns>
|
|
public virtual uint GetCredentialCacheState(out bool outEnabled)
|
|
{
|
|
GetCredentialCacheState_INPUT input = new GetCredentialCacheState_INPUT(this.XmlNamespace);
|
|
GetCredentialCacheState_OUTPUT output = new GetCredentialCacheState_OUTPUT();
|
|
uint returnValue = base.Invoke("GetCredentialCacheState",input,out output);
|
|
outEnabled=false;
|
|
if (returnValue == 0)
|
|
{
|
|
if (output.ContainsField("Enabled"))
|
|
outEnabled = output.Enabled;
|
|
}
|
|
return returnValue;
|
|
}
|
|
/// <summary>
|
|
///SetCredentialCacheState enables/disables the credential caching functionality
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
|
|
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_KerberosSettingData", IsNullable=false)]
|
|
private class SetCredentialCacheState_INPUT : CimParams
|
|
{
|
|
public SetCredentialCacheState_INPUT(string ns) : base(ns)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Required, New state of the functionality
|
|
/// </summary>
|
|
[CimField(false,true)]
|
|
public virtual bool Enable
|
|
{
|
|
set
|
|
{
|
|
this.SetOrAddField("Enable",value.ToString().ToLower(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
}
|
|
/// <summary>
|
|
///SetCredentialCacheState enables/disables the credential caching functionality
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
|
|
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_KerberosSettingData", IsNullable=false)]
|
|
private class SetCredentialCacheState_OUTPUT : CimParams
|
|
{
|
|
public SetCredentialCacheState_OUTPUT() : base("")
|
|
{
|
|
}
|
|
|
|
}
|
|
/// <summary>
|
|
///SetCredentialCacheState enables/disables the credential caching functionality
|
|
/// </summary>
|
|
/// <param name="inEnable">Required, IN -New state of the functionality</param>
|
|
/// <returns>
|
|
/// </returns>
|
|
public virtual uint SetCredentialCacheState(bool? inEnable)
|
|
{
|
|
SetCredentialCacheState_INPUT input = new SetCredentialCacheState_INPUT(this.XmlNamespace);
|
|
if (inEnable.HasValue)
|
|
input.Enable=inEnable.Value;
|
|
SetCredentialCacheState_OUTPUT output = new SetCredentialCacheState_OUTPUT();
|
|
uint returnValue = base.Invoke("SetCredentialCacheState",input,out output);
|
|
return returnValue;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_KerberosSettingData 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_KerberosSettingData objects</returns>
|
|
public static new Collection<AMT_KerberosSettingData> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<AMT_KerberosSettingData> ret = CimBase.Enumerate<AMT_KerberosSettingData>(client, cimKeys);
|
|
return new Collection<AMT_KerberosSettingData>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_KerberosSettingData class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of AMT_KerberosSettingData objects</returns>
|
|
public static new Collection<AMT_KerberosSettingData> Enumerate(IWSManClient client)
|
|
{
|
|
List<AMT_KerberosSettingData> ret = CimBase.Enumerate<AMT_KerberosSettingData>(client);
|
|
return new Collection<AMT_KerberosSettingData>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of AMT_KerberosSettingData 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_KerberosSettingData>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the AMT_KerberosSettingData class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_SettingData.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|