//---------------------------------------------------------------------------- // // 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 { /// ///The AMT_KerberosSettingData class represents configuration-related and operational parameters for the kerberos service in the Intel(R) AMT. /// [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 { /// /// Default constructor. /// public AMT_KerberosSettingData() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public AMT_KerberosSettingData(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public AMT_KerberosSettingData(IWSManClient client): base(client) { } /// /// Remove ConfiguredEncryptionAlgorithms field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveConfiguredEncryptionAlgorithms() { RemoveField("ConfiguredEncryptionAlgorithms"); } /// /// Is true if the field ConfiguredEncryptionAlgorithms exists in the current object, /// otherwise is false. /// public virtual bool ConfiguredEncryptionAlgorithmsExist { get { return ContainsField("ConfiguredEncryptionAlgorithms"); } } /// /// Optional, A 16-bit enumeration values that identifier the configured encryption algorithms used in Kerberos authentication. /// [CimField(false, false)] public virtual ushort[] ConfiguredEncryptionAlgorithms { get { return CimTypesUtils.StringArrayToArray(this["ConfiguredEncryptionAlgorithms"]); } set { string[] arr = CimTypesUtils.ArrayToStringArray(value); this.SetOrAddField("ConfiguredEncryptionAlgorithms", arr); } } /// /// Remove EncryptionAlgorithm field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveEncryptionAlgorithm() { RemoveField("EncryptionAlgorithm"); } /// /// Is true if the field EncryptionAlgorithm exists in the current object, /// otherwise is false. /// public virtual bool EncryptionAlgorithmExist { get { return ContainsField("EncryptionAlgorithm"); } } /// /// Optional, A 16-bit enumeration value that identifiers the encryption algorithm used in Kerberos authentication. /// [CimField(false, false)] public virtual ushort EncryptionAlgorithm { get { return ushort.Parse(this["EncryptionAlgorithm"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("EncryptionAlgorithm",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove IterationCount field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveIterationCount() { RemoveField("IterationCount"); } /// /// Is true if the field IterationCount exists in the current object, /// otherwise is false. /// public virtual bool IterationCountExist { get { return ContainsField("IterationCount"); } } /// /// Optional, Can be used when the key generation method is chosen (RFC 3961,3962) /// [CimField(false, false)] public virtual uint IterationCount { get { return uint.Parse(this["IterationCount"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("IterationCount",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove KeyVersion field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveKeyVersion() { RemoveField("KeyVersion"); } /// /// Is true if the field KeyVersion exists in the current object, /// otherwise is false. /// public virtual bool KeyVersionExist { get { return ContainsField("KeyVersion"); } } /// /// Optional, Key version number. User can update the value each time the master key is changed. /// [CimField(false, false)] public virtual uint KeyVersion { get { return uint.Parse(this["KeyVersion"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("KeyVersion",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Required, Indicates whether Kerberos authentication is enabled or disable. /// [CimField(false, true)] public virtual bool KrbEnabled { get { return bool.Parse(this["KrbEnabled"][0]); } set { this.SetOrAddField("KrbEnabled",value.ToString().ToLower(CultureInfo.InvariantCulture)); } } /// /// Remove MasterKey field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveMasterKey() { RemoveField("MasterKey"); } /// /// Is true if the field MasterKey exists in the current object, /// otherwise is false. /// public virtual bool MasterKeyExist { get { return ContainsField("MasterKey"); } } /// /// Optional, A 128-bit binary key value. MasterKey cannot be used if the key generation method is used (using the Passphrase property) /// [CimField(false, false)] public virtual byte[] MasterKey { get { return Convert.FromBase64String(this.GetField("MasterKey")[0]); } set { this.SetOrAddField("MasterKey",Convert.ToBase64String(value)); } } /// /// Remove MaximumClockTolerance field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveMaximumClockTolerance() { RemoveField("MaximumClockTolerance"); } /// /// Is true if the field MaximumClockTolerance exists in the current object, /// otherwise is false. /// public virtual bool MaximumClockToleranceExist { get { return ContainsField("MaximumClockTolerance"); } } /// /// 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. /// [CimField(false, false)] public virtual uint MaximumClockTolerance { get { return uint.Parse(this["MaximumClockTolerance"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("MaximumClockTolerance",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove Passphrase field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemovePassphrase() { RemoveField("Passphrase"); } /// /// Is true if the field Passphrase exists in the current object, /// otherwise is false. /// public virtual bool PassphraseExist { get { return ContainsField("Passphrase"); } } /// /// Optional, Used when the key generation method is chosen (RFC 3961,3962). Salt and IterationCount must be supplied also. /// [CimField(false, false)] public virtual string Passphrase { get { return this.GetField("Passphrase")[0]; } set { this.SetOrAddField("Passphrase",value); } } /// /// Remove RealmName field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveRealmName() { RemoveField("RealmName"); } /// /// Is true if the field RealmName exists in the current object, /// otherwise is false. /// public virtual bool RealmNameExist { get { return ContainsField("RealmName"); } } /// /// Optional, Kerberos Realm name. /// [CimField(false, false)] public virtual string RealmName { get { return this.GetField("RealmName")[0]; } set { this.SetOrAddField("RealmName",value); } } /// /// Remove Salt field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveSalt() { RemoveField("Salt"); } /// /// Is true if the field Salt exists in the current object, /// otherwise is false. /// public virtual bool SaltExist { get { return ContainsField("Salt"); } } /// /// Optional, Used when the key generation method is chosen (RFC 3961,3962) /// [CimField(false, false)] public virtual string Salt { get { return this.GetField("Salt")[0]; } set { this.SetOrAddField("Salt",value); } } /// /// Remove ServicePrincipalName field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveServicePrincipalName() { RemoveField("ServicePrincipalName"); } /// /// Is true if the field ServicePrincipalName exists in the current object, /// otherwise is false. /// public virtual bool ServicePrincipalNameExist { get { return ContainsField("ServicePrincipalName"); } } /// /// Optional, An array of strings, each of which names a distinct service principal. /// [CimField(false, false)] public virtual string[] ServicePrincipalName { get { return CimTypesUtils.StringArrayToArray(this["ServicePrincipalName"]); } set { string[] arr = CimTypesUtils.ArrayToStringArray(value); this.SetOrAddField("ServicePrincipalName", arr); } } /// /// Remove ServicePrincipalProtocol field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveServicePrincipalProtocol() { RemoveField("ServicePrincipalProtocol"); } /// /// Is true if the field ServicePrincipalProtocol exists in the current object, /// otherwise is false. /// public virtual bool ServicePrincipalProtocolExist { get { return ContainsField("ServicePrincipalProtocol"); } } /// /// Optional, An array of 16-bit enumeration values, each of which corresponds to the string in the same position of ServicePrincipalName. /// [CimField(false, false)] public virtual ushort[] ServicePrincipalProtocol { get { return CimTypesUtils.StringArrayToArray(this["ServicePrincipalProtocol"]); } set { string[] arr = CimTypesUtils.ArrayToStringArray(value); this.SetOrAddField("ServicePrincipalProtocol", arr); } } /// /// Remove SupportedEncryptionAlgorithms field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveSupportedEncryptionAlgorithms() { RemoveField("SupportedEncryptionAlgorithms"); } /// /// Is true if the field SupportedEncryptionAlgorithms exists in the current object, /// otherwise is false. /// public virtual bool SupportedEncryptionAlgorithmsExist { get { return ContainsField("SupportedEncryptionAlgorithms"); } } /// /// Optional, A 16-bit enumeration values that identifier the supported encryption algorithms used in Kerberos authentication. /// [CimField(false, false)] public virtual ushort[] SupportedEncryptionAlgorithms { get { return CimTypesUtils.StringArrayToArray(this["SupportedEncryptionAlgorithms"]); } set { string[] arr = CimTypesUtils.ArrayToStringArray(value); this.SetOrAddField("SupportedEncryptionAlgorithms", arr); } } /// ///GetCredentialCacheState gets the current state of the credential caching functionality /// [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) { } } /// ///GetCredentialCacheState gets the current state of the credential caching functionality /// [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("") { } /// /// Required, Output state of the credential caching functionality /// [CimField(false,true)] public virtual bool Enabled { get { return bool.Parse(this["Enabled"][0]); } } } /// ///GetCredentialCacheState gets the current state of the credential caching functionality /// /// OUT - Output state of the credential caching functionality /// /// 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; } /// ///SetCredentialCacheState enables/disables the credential caching functionality /// [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) { } /// /// Required, New state of the functionality /// [CimField(false,true)] public virtual bool Enable { set { this.SetOrAddField("Enable",value.ToString().ToLower(CultureInfo.InvariantCulture)); } } } /// ///SetCredentialCacheState enables/disables the credential caching functionality /// [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("") { } } /// ///SetCredentialCacheState enables/disables the credential caching functionality /// /// Required, IN -New state of the functionality /// /// 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; } /// /// Enumerate instances of AMT_KerberosSettingData class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of AMT_KerberosSettingData 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_KerberosSettingData class at an endpoint. /// /// WS-Management client /// Collection of AMT_KerberosSettingData objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of AMT_KerberosSettingData 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_KerberosSettingData class. /// public new class CimKeys : CIM_SettingData.CimKeys { } } }