//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: AMT_AuthorizationService.cs // // Contents: Describes the Authorization Service, which is responsible for Access Control management in the Intel(R) AMT subsystem. // This file was automatically generated from AMT_AuthorizationService.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 { /// ///Describes the Authorization Service, which is responsible for Access Control management in the Intel(R) AMT subsystem. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService")] [System.Xml.Serialization.XmlRootAttribute("AMT_AuthorizationService", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService", IsNullable=false)] public class AMT_AuthorizationService : CIM_Service { /// /// Default constructor. /// public AMT_AuthorizationService() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public AMT_AuthorizationService(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public AMT_AuthorizationService(IWSManClient client): base(client) { } /// /// Remove AllowHttpQopAuthOnly field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveAllowHttpQopAuthOnly() { RemoveField("AllowHttpQopAuthOnly"); } /// /// Is true if the field AllowHttpQopAuthOnly exists in the current object, /// otherwise is false. /// public virtual bool AllowHttpQopAuthOnlyExist { get { return ContainsField("AllowHttpQopAuthOnly"); } } /// /// Optional, Indicates whether http digest authentication allows using qop="auth" /// [CimField(false, false)] public virtual uint AllowHttpQopAuthOnly { get { return uint.Parse(this["AllowHttpQopAuthOnly"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("AllowHttpQopAuthOnly",value.ToString(CultureInfo.InvariantCulture)); } } /// ///Adds a user entry to the Intel(R) AMT device. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService", IsNullable=false)] private class AddUserAclEntryEx_INPUT : CimParams { public AddUserAclEntryEx_INPUT(string ns) : base(ns) { } /// /// Optional, Username for access control. Contains 7-bit ASCII characters. String length is limited to 16 characters. Username cannot be an empty string. /// [CimField(false,false)] public virtual string DigestUsername { set { this.SetOrAddField("DigestUsername",value); } } /// /// Optional, An MD5 Hash of these parameters concatenated together (Username + ":" + DigestRealm + ":" + Password). The DigestRealm is a field in AMT_GeneralSettings /// [CimField(false,false)] public virtual byte[] DigestPassword { set { this.SetOrAddField("DigestPassword",Convert.ToBase64String(value)); } } /// /// Optional, Descriptor for user (SID) which is authenticated using the Kerberos Authentication. Byte array, specifying the Security Identifier (SID) according to the Kerberos specification. Current requirements imply that SID should be not smaller than 1 byte length and no longer than 28 bytes. SID length should also be a multiplicand of 4. /// [CimField(false,false)] public virtual byte[] KerberosUserSid { set { this.SetOrAddField("KerberosUserSid",Convert.ToBase64String(value)); } } /// /// Required, Indicates whether the User is allowed to access Intel(R) AMT from the Network or Local Interfaces. Note: this definition is restricted by the Default Interface Access Permissions of each Realm. /// [CimField(false,true)] public virtual uint AccessPermission { set { this.SetOrAddField("AccessPermission",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Optional, Array of interface names the ACL entry is allowed to access. /// [CimField(false,false)] public virtual uint[] Realms { set { List newArr = new List(); foreach (uint val in value) { newArr.Add(val.ToString(CultureInfo.InvariantCulture)); } this.SetOrAddField("Realms",newArr.ToArray()); } } } /// ///Adds a user entry to the Intel(R) AMT device. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService", IsNullable=false)] private class AddUserAclEntryEx_OUTPUT : CimParams { public AddUserAclEntryEx_OUTPUT() : base("") { } /// /// Optional, Contains a creation handle. /// [CimField(false,false)] public virtual uint Handle { get { return uint.Parse(this["Handle"][0], CultureInfo.InvariantCulture); } } } /// ///Adds a user entry to the Intel(R) AMT device. /// /// Optional, IN -Username for access control. Contains 7-bit ASCII characters. String length is limited to 16 characters. Username cannot be an empty string. /// Optional, IN -An MD5 Hash of these parameters concatenated together (Username + ":" + DigestRealm + ":" + Password). The DigestRealm is a field in AMT_GeneralSettings /// Optional, IN -Descriptor for user (SID) which is authenticated using the Kerberos Authentication. Byte array, specifying the Security Identifier (SID) according to the Kerberos specification. Current requirements imply that SID should be not smaller than 1 byte length and no longer than 28 bytes. SID length should also be a multiplicand of 4. /// Required, IN -Indicates whether the User is allowed to access Intel(R) AMT from the Network or Local Interfaces. Note: this definition is restricted by the Default Interface Access Permissions of each Realm. /// Optional, IN -Array of interface names the ACL entry is allowed to access. /// OUT - Contains a creation handle. /// /// Legal values: /// PT_STATUS_SUCCESS : 0 /// PT_STATUS_INTERNAL_ERROR : 1 /// PT_STATUS_INVALID_NAME : 12 /// PT_STATUS_NOT_PERMITTED : 16 /// PT_STATUS_MAX_LIMIT_REACHED : 23 /// PT_STATUS_FLASH_WRITE_LIMIT_EXCEEDED : 38 /// PT_STATUS_INVALID_PASSWORD : 2054 /// PT_STATUS_INVALID_REALM : 2055 /// PT_STATUS_MAX_KERB_DOMAIN_REACHED : 2065 /// PT_STATUS_AUDIT_FAIL : 2075 /// public virtual uint AddUserAclEntryEx(string inDigestUsername,byte[] inDigestPassword,byte[] inKerberosUserSid,uint? inAccessPermission,uint[] inRealms,out uint outHandle) { AddUserAclEntryEx_INPUT input = new AddUserAclEntryEx_INPUT(this.XmlNamespace); if (inDigestUsername != null) input.DigestUsername=inDigestUsername; if (inDigestPassword != null) input.DigestPassword=inDigestPassword; if (inKerberosUserSid != null) input.KerberosUserSid=inKerberosUserSid; if (inAccessPermission.HasValue) input.AccessPermission=inAccessPermission.Value; if (inRealms != null) input.Realms=inRealms; AddUserAclEntryEx_OUTPUT output = new AddUserAclEntryEx_OUTPUT(); uint returnValue = base.Invoke("AddUserAclEntryEx",input,out output); outHandle=0; if (returnValue == 0) { if (output.ContainsField("Handle")) outHandle = output.Handle; } return returnValue; } /// ///Enumerates entries in the User Access Control List (ACL). /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService", IsNullable=false)] private class EnumerateUserAclEntries_INPUT : CimParams { public EnumerateUserAclEntries_INPUT(string ns) : base(ns) { } /// /// Required, Indicates the first ACL entry to retrieve. To enumerate the entire list, an application sends this message with StartIndex set to 1. /// [CimField(false,true)] public virtual uint StartIndex { set { this.SetOrAddField("StartIndex",value.ToString(CultureInfo.InvariantCulture)); } } } /// ///Enumerates entries in the User Access Control List (ACL). /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService", IsNullable=false)] private class EnumerateUserAclEntries_OUTPUT : CimParams { public EnumerateUserAclEntries_OUTPUT() : base("") { } /// /// Optional, Contains the total number of entries in the User ACL. /// [CimField(false,false)] public virtual uint TotalCount { get { return uint.Parse(this["TotalCount"][0], CultureInfo.InvariantCulture); } } /// /// Optional, Contains the number of entries in the returned list. /// [CimField(false,false)] public virtual uint HandlesCount { get { return uint.Parse(this["HandlesCount"][0], CultureInfo.InvariantCulture); } } /// /// Optional, Contains a list of HandleCount entry handles. /// [CimField(false,false)] public virtual uint[] Handles { get { string[] arr = this["Handles"]; List newArr = new List(); foreach (string str in arr) { newArr.Add(uint.Parse(str, CultureInfo.InvariantCulture)); } return newArr.ToArray(); } } } /// ///Enumerates entries in the User Access Control List (ACL). /// /// Required, IN -Indicates the first ACL entry to retrieve. To enumerate the entire list, an application sends this message with StartIndex set to 1. /// OUT - Contains the total number of entries in the User ACL. /// OUT - Contains the number of entries in the returned list. /// OUT - Contains a list of HandleCount entry handles. /// /// Legal values: /// PT_STATUS_SUCCESS : 0 /// PT_STATUS_INTERNAL_ERROR : 1 /// PT_STATUS_INVALID_INDEX : 35 /// public virtual uint EnumerateUserAclEntries(uint? inStartIndex,out uint outTotalCount,out uint outHandlesCount,out uint[] outHandles) { EnumerateUserAclEntries_INPUT input = new EnumerateUserAclEntries_INPUT(this.XmlNamespace); if (inStartIndex.HasValue) input.StartIndex=inStartIndex.Value; EnumerateUserAclEntries_OUTPUT output = new EnumerateUserAclEntries_OUTPUT(); uint returnValue = base.Invoke("EnumerateUserAclEntries",input,out output); outTotalCount=0; outHandlesCount=0; outHandles=null; if (returnValue == 0) { if (output.ContainsField("TotalCount")) outTotalCount = output.TotalCount; if (output.ContainsField("HandlesCount")) outHandlesCount = output.HandlesCount; if (output.ContainsField("Handles")) outHandles = output.Handles; } return returnValue; } /// ///Reads a user entry from the Intel(R) AMT device. Note: confidential information, such as password (hash) is omitted or zeroed in the response. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService", IsNullable=false)] private class GetUserAclEntryEx_INPUT : CimParams { public GetUserAclEntryEx_INPUT(string ns) : base(ns) { } /// /// Required, Specifies the ACL entry to fetch. /// [CimField(false,true)] public virtual uint Handle { set { this.SetOrAddField("Handle",value.ToString(CultureInfo.InvariantCulture)); } } } /// ///Reads a user entry from the Intel(R) AMT device. Note: confidential information, such as password (hash) is omitted or zeroed in the response. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService", IsNullable=false)] private class GetUserAclEntryEx_OUTPUT : CimParams { public GetUserAclEntryEx_OUTPUT() : base("") { } /// /// Optional, Username for access control. /// [CimField(false,false)] public virtual string DigestUsername { get { return this.GetField("DigestUsername")[0]; } } /// /// Optional, Confidential information, such as password (hash) is omitted from the response. /// [CimField(false,false)] public virtual byte[] DigestPassword { get { return Convert.FromBase64String(this.GetField("DigestPassword")[0]); } } /// /// Optional, Descriptor for user (SID) which is authenticated using the Kerberos Authentication. Byte array, specifying the Security Identifier (SID) according to the Kerberos specification. /// [CimField(false,false)] public virtual byte[] KerberosUserSid { get { return Convert.FromBase64String(this.GetField("KerberosUserSid")[0]); } } /// /// Optional, Indicates whether the User is allowed to access Intel(R) AMT from the Network or Local Interfaces. Note: this definition is restricted by the Default Interface Access Permissions of each Realm. /// [CimField(false,false)] public virtual uint AccessPermission { get { return uint.Parse(this["AccessPermission"][0], CultureInfo.InvariantCulture); } } /// /// Optional, Array of interface names the ACL entry is allowed to access. /// [CimField(false,false)] public virtual uint[] Realms { get { string[] arr = this["Realms"]; List newArr = new List(); foreach (string str in arr) { newArr.Add(uint.Parse(str, CultureInfo.InvariantCulture)); } return newArr.ToArray(); } } } /// ///Reads a user entry from the Intel(R) AMT device. Note: confidential information, such as password (hash) is omitted or zeroed in the response. /// /// Required, IN -Specifies the ACL entry to fetch. /// OUT - Username for access control. /// OUT - Confidential information, such as password (hash) is omitted from the response. /// OUT - Descriptor for user (SID) which is authenticated using the Kerberos Authentication. Byte array, specifying the Security Identifier (SID) according to the Kerberos specification. /// OUT - Indicates whether the User is allowed to access Intel(R) AMT from the Network or Local Interfaces. Note: this definition is restricted by the Default Interface Access Permissions of each Realm. /// OUT - Array of interface names the ACL entry is allowed to access. /// /// Legal values: /// PT_STATUS_SUCCESS : 0 /// PT_STATUS_INTERNAL_ERROR : 1 /// PT_STATUS_INVALID_HANDLE : 2053 /// public virtual uint GetUserAclEntryEx(uint? inHandle,out string outDigestUsername,out byte[] outDigestPassword,out byte[] outKerberosUserSid,out uint outAccessPermission,out uint[] outRealms) { GetUserAclEntryEx_INPUT input = new GetUserAclEntryEx_INPUT(this.XmlNamespace); if (inHandle.HasValue) input.Handle=inHandle.Value; GetUserAclEntryEx_OUTPUT output = new GetUserAclEntryEx_OUTPUT(); uint returnValue = base.Invoke("GetUserAclEntryEx",input,out output); outDigestUsername=null; outDigestPassword=null; outKerberosUserSid=null; outAccessPermission=0; outRealms=null; if (returnValue == 0) { if (output.ContainsField("DigestUsername")) outDigestUsername = output.DigestUsername; if (output.ContainsField("DigestPassword")) outDigestPassword = output.DigestPassword; if (output.ContainsField("KerberosUserSid")) outKerberosUserSid = output.KerberosUserSid; if (output.ContainsField("AccessPermission")) outAccessPermission = output.AccessPermission; if (output.ContainsField("Realms")) outRealms = output.Realms; } return returnValue; } /// ///Updates a user entry in the Intel(R) AMT device. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService", IsNullable=false)] private class UpdateUserAclEntryEx_INPUT : CimParams { public UpdateUserAclEntryEx_INPUT(string ns) : base(ns) { } /// /// Required, Creation handle to a User ACL entry. /// [CimField(false,true)] public virtual uint Handle { set { this.SetOrAddField("Handle",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Optional, Username for access control. Contains 7-bit ASCII characters. String length is limited to 16 characters. Username cannot be an empty string. /// [CimField(false,false)] public virtual string DigestUsername { set { this.SetOrAddField("DigestUsername",value); } } /// /// Optional, An MD5 Hash of these parameters concatenated together (Username + ":" + DigestRealm + ":" + Password). The DigestRealm is a field in AMT_GeneralSettings /// [CimField(false,false)] public virtual byte[] DigestPassword { set { this.SetOrAddField("DigestPassword",Convert.ToBase64String(value)); } } /// /// Optional, Descriptor for user (SID) which is authenticated using the Kerberos Authentication. Byte array, specifying the Security Identifier (SID) according to the Kerberos specification. Current requirements imply that SID should be not smaller than 1 byte length and no longer than 28 bytes. SID length should also be a multiplicand of 4. /// [CimField(false,false)] public virtual byte[] KerberosUserSid { set { this.SetOrAddField("KerberosUserSid",Convert.ToBase64String(value)); } } /// /// Required, Indicates whether the User is allowed to access Intel(R) AMT from the Network or Local Interfaces. Note: this definition is restricted by the Default Interface Access Permissions of each Realm. /// [CimField(false,true)] public virtual uint AccessPermission { set { this.SetOrAddField("AccessPermission",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Optional, Array of interface names the ACL entry is allowed to access. /// [CimField(false,false)] public virtual uint[] Realms { set { List newArr = new List(); foreach (uint val in value) { newArr.Add(val.ToString(CultureInfo.InvariantCulture)); } this.SetOrAddField("Realms",newArr.ToArray()); } } } /// ///Updates a user entry in the Intel(R) AMT device. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService", IsNullable=false)] private class UpdateUserAclEntryEx_OUTPUT : CimParams { public UpdateUserAclEntryEx_OUTPUT() : base("") { } } /// ///Updates a user entry in the Intel(R) AMT device. /// /// Required, IN -Creation handle to a User ACL entry. /// Optional, IN -Username for access control. Contains 7-bit ASCII characters. String length is limited to 16 characters. Username cannot be an empty string. /// Optional, IN -An MD5 Hash of these parameters concatenated together (Username + ":" + DigestRealm + ":" + Password). The DigestRealm is a field in AMT_GeneralSettings /// Optional, IN -Descriptor for user (SID) which is authenticated using the Kerberos Authentication. Byte array, specifying the Security Identifier (SID) according to the Kerberos specification. Current requirements imply that SID should be not smaller than 1 byte length and no longer than 28 bytes. SID length should also be a multiplicand of 4. /// Required, IN -Indicates whether the User is allowed to access Intel(R) AMT from the Network or Local Interfaces. Note: this definition is restricted by the Default Interface Access Permissions of each Realm. /// Optional, IN -Array of interface names the ACL entry is allowed to access. /// /// Legal values: /// PT_STATUS_SUCCESS : 0 /// PT_STATUS_INTERNAL_ERROR : 1 /// PT_STATUS_INVALID_NAME : 12 /// PT_STATUS_NOT_PERMITTED : 16 /// PT_STATUS_FLASH_WRITE_LIMIT_EXCEEDED : 38 /// PT_STATUS_INVALID_HANDLE : 2053 /// PT_STATUS_INVALID_PASSWORD : 2054 /// PT_STATUS_INVALID_REALM : 2055 /// PT_STATUS_MAX_KERB_DOMAIN_REACHED : 2065 /// PT_STATUS_AUDIT_FAIL : 2075 /// public virtual uint UpdateUserAclEntryEx(uint? inHandle,string inDigestUsername,byte[] inDigestPassword,byte[] inKerberosUserSid,uint? inAccessPermission,uint[] inRealms) { UpdateUserAclEntryEx_INPUT input = new UpdateUserAclEntryEx_INPUT(this.XmlNamespace); if (inHandle.HasValue) input.Handle=inHandle.Value; if (inDigestUsername != null) input.DigestUsername=inDigestUsername; if (inDigestPassword != null) input.DigestPassword=inDigestPassword; if (inKerberosUserSid != null) input.KerberosUserSid=inKerberosUserSid; if (inAccessPermission.HasValue) input.AccessPermission=inAccessPermission.Value; if (inRealms != null) input.Realms=inRealms; UpdateUserAclEntryEx_OUTPUT output = new UpdateUserAclEntryEx_OUTPUT(); uint returnValue = base.Invoke("UpdateUserAclEntryEx",input,out output); return returnValue; } /// ///Removes an entry from the User Access Control List (ACL), given a handle. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService", IsNullable=false)] private class RemoveUserAclEntry_INPUT : CimParams { public RemoveUserAclEntry_INPUT(string ns) : base(ns) { } /// /// Required, Specifies the ACL entry to be removed. /// [CimField(false,true)] public virtual uint Handle { set { this.SetOrAddField("Handle",value.ToString(CultureInfo.InvariantCulture)); } } } /// ///Removes an entry from the User Access Control List (ACL), given a handle. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService", IsNullable=false)] private class RemoveUserAclEntry_OUTPUT : CimParams { public RemoveUserAclEntry_OUTPUT() : base("") { } } /// ///Removes an entry from the User Access Control List (ACL), given a handle. /// /// Required, IN -Specifies the ACL entry to be removed. /// /// Legal values: /// PT_STATUS_SUCCESS : 0 /// PT_STATUS_INTERNAL_ERROR : 1 /// PT_STATUS_NOT_PERMITTED : 16 /// PT_STATUS_INVALID_HANDLE : 2053 /// PT_STATUS_AUDIT_FAIL : 2075 /// public virtual uint RemoveUserAclEntry(uint? inHandle) { RemoveUserAclEntry_INPUT input = new RemoveUserAclEntry_INPUT(this.XmlNamespace); if (inHandle.HasValue) input.Handle=inHandle.Value; RemoveUserAclEntry_OUTPUT output = new RemoveUserAclEntry_OUTPUT(); uint returnValue = base.Invoke("RemoveUserAclEntry",input,out output); return returnValue; } /// ///Updates an Admin entry in the Intel(R) AMT device. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService", IsNullable=false)] private class SetAdminAclEntryEx_INPUT : CimParams { public SetAdminAclEntryEx_INPUT(string ns) : base(ns) { } /// /// Required, Username for access control. Contains 7-bit ASCII characters. String length is limited to 16 characters. Username cannot be an empty string. /// [CimField(false,true)] public virtual string Username { set { this.SetOrAddField("Username",value); } } /// /// Required, An MD5 Hash of these parameters concatenated together (Username + ":" + DigestRealm + ":" + Password). The DigestRealm is a field in AMT_GeneralSettings /// [CimField(false,true)] public virtual byte[] DigestPassword { set { this.SetOrAddField("DigestPassword",Convert.ToBase64String(value)); } } } /// ///Updates an Admin entry in the Intel(R) AMT device. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService", IsNullable=false)] private class SetAdminAclEntryEx_OUTPUT : CimParams { public SetAdminAclEntryEx_OUTPUT() : base("") { } } /// ///Updates an Admin entry in the Intel(R) AMT device. /// /// Required, IN -Username for access control. Contains 7-bit ASCII characters. String length is limited to 16 characters. Username cannot be an empty string. /// Required, IN -An MD5 Hash of these parameters concatenated together (Username + ":" + DigestRealm + ":" + Password). The DigestRealm is a field in AMT_GeneralSettings /// /// Legal values: /// PT_STATUS_SUCCESS : 0 /// PT_STATUS_INTERNAL_ERROR : 1 /// PT_STATUS_INVALID_NAME : 12 /// PT_STATUS_FLASH_WRITE_LIMIT_EXCEEDED : 38 /// PT_STATUS_INVALID_PASSWORD : 2054 /// PT_STATUS_AUDIT_FAIL : 2075 /// public virtual uint SetAdminAclEntryEx(string inUsername,byte[] inDigestPassword) { SetAdminAclEntryEx_INPUT input = new SetAdminAclEntryEx_INPUT(this.XmlNamespace); if (inUsername != null) input.Username=inUsername; if (inDigestPassword != null) input.DigestPassword=inDigestPassword; SetAdminAclEntryEx_OUTPUT output = new SetAdminAclEntryEx_OUTPUT(); uint returnValue = base.Invoke("SetAdminAclEntryEx",input,out output); return returnValue; } /// ///Returns the username attribute of the Admin ACL. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService", IsNullable=false)] private class GetAdminAclEntry_INPUT : CimParams { public GetAdminAclEntry_INPUT(string ns) : base(ns) { } } /// ///Returns the username attribute of the Admin ACL. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService", IsNullable=false)] private class GetAdminAclEntry_OUTPUT : CimParams { public GetAdminAclEntry_OUTPUT() : base("") { } /// /// Optional, Contains the username of the Admin ACL. /// [CimField(false,false)] public virtual string Username { get { return this.GetField("Username")[0]; } } } /// ///Returns the username attribute of the Admin ACL. /// /// OUT - Contains the username of the Admin ACL. /// /// Legal values: /// PT_STATUS_SUCCESS : 0 /// PT_STATUS_INTERNAL_ERROR : 1 /// public virtual uint GetAdminAclEntry(out string outUsername) { GetAdminAclEntry_INPUT input = new GetAdminAclEntry_INPUT(this.XmlNamespace); GetAdminAclEntry_OUTPUT output = new GetAdminAclEntry_OUTPUT(); uint returnValue = base.Invoke("GetAdminAclEntry",input,out output); outUsername=null; if (returnValue == 0) { if (output.ContainsField("Username")) outUsername = output.Username; } return returnValue; } /// ///Reads the Admin ACL Entry status from Intel(R) AMT. The return state changes as a function of the admin password. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService", IsNullable=false)] private class GetAdminAclEntryStatus_INPUT : CimParams { public GetAdminAclEntryStatus_INPUT(string ns) : base(ns) { } } /// ///Reads the Admin ACL Entry status from Intel(R) AMT. The return state changes as a function of the admin password. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService", IsNullable=false)] private class GetAdminAclEntryStatus_OUTPUT : CimParams { public GetAdminAclEntryStatus_OUTPUT() : base("") { } /// /// Optional, TRUE if the admin ACL entry (admin password) was never changed by the user. Otherwise, the parameter is FALSE. /// [CimField(false,false)] public virtual bool IsDefault { get { return bool.Parse(this["IsDefault"][0]); } } } /// ///Reads the Admin ACL Entry status from Intel(R) AMT. The return state changes as a function of the admin password. /// /// OUT - TRUE if the admin ACL entry (admin password) was never changed by the user. Otherwise, the parameter is FALSE. /// /// Legal values: /// PT_STATUS_SUCCESS : 0 /// PT_STATUS_INTERNAL_ERROR : 1 /// public virtual uint GetAdminAclEntryStatus(out bool outIsDefault) { GetAdminAclEntryStatus_INPUT input = new GetAdminAclEntryStatus_INPUT(this.XmlNamespace); GetAdminAclEntryStatus_OUTPUT output = new GetAdminAclEntryStatus_OUTPUT(); uint returnValue = base.Invoke("GetAdminAclEntryStatus",input,out output); outIsDefault=false; if (returnValue == 0) { if (output.ContainsField("IsDefault")) outIsDefault = output.IsDefault; } return returnValue; } /// ///Reads the remote Admin ACL Entry status from Intel(R) AMT. The return state changes as a function of the remote admin password. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService", IsNullable=false)] private class GetAdminNetAclEntryStatus_INPUT : CimParams { public GetAdminNetAclEntryStatus_INPUT(string ns) : base(ns) { } } /// ///Reads the remote Admin ACL Entry status from Intel(R) AMT. The return state changes as a function of the remote admin password. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService", IsNullable=false)] private class GetAdminNetAclEntryStatus_OUTPUT : CimParams { public GetAdminNetAclEntryStatus_OUTPUT() : base("") { } /// /// Optional, TRUE if the remote admin ACL entry (remote admin password) was never changed by the user. Otherwise, the parameter is FALSE. /// [CimField(false,false)] public virtual bool IsDefault { get { return bool.Parse(this["IsDefault"][0]); } } } /// ///Reads the remote Admin ACL Entry status from Intel(R) AMT. The return state changes as a function of the remote admin password. /// /// OUT - TRUE if the remote admin ACL entry (remote admin password) was never changed by the user. Otherwise, the parameter is FALSE. /// /// Legal values: /// PT_STATUS_SUCCESS : 0 /// PT_STATUS_INTERNAL_ERROR : 1 /// public virtual uint GetAdminNetAclEntryStatus(out bool outIsDefault) { GetAdminNetAclEntryStatus_INPUT input = new GetAdminNetAclEntryStatus_INPUT(this.XmlNamespace); GetAdminNetAclEntryStatus_OUTPUT output = new GetAdminNetAclEntryStatus_OUTPUT(); uint returnValue = base.Invoke("GetAdminNetAclEntryStatus",input,out output); outIsDefault=false; if (returnValue == 0) { if (output.ContainsField("IsDefault")) outIsDefault = output.IsDefault; } return returnValue; } /// ///Enables or disables a user ACL entry.Disabling ACL entries is useful when accounts that cannot be removed (system accounts - starting with $$) are required to be disabled. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService", IsNullable=false)] private class SetAclEnabledState_INPUT : CimParams { public SetAclEnabledState_INPUT(string ns) : base(ns) { } /// /// Required, Specifies the ACL entry to update /// [CimField(false,true)] public virtual uint Handle { set { this.SetOrAddField("Handle",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Required, Specifies the state of the ACL entry /// [CimField(false,true)] public virtual bool Enabled { set { this.SetOrAddField("Enabled",value.ToString().ToLower(CultureInfo.InvariantCulture)); } } } /// ///Enables or disables a user ACL entry.Disabling ACL entries is useful when accounts that cannot be removed (system accounts - starting with $$) are required to be disabled. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService", IsNullable=false)] private class SetAclEnabledState_OUTPUT : CimParams { public SetAclEnabledState_OUTPUT() : base("") { } } /// ///Enables or disables a user ACL entry.Disabling ACL entries is useful when accounts that cannot be removed (system accounts - starting with $$) are required to be disabled. /// /// Required, IN -Specifies the ACL entry to update /// Required, IN -Specifies the state of the ACL entry /// /// Legal values: /// PT_STATUS_SUCCESS : 0 /// PT_STATUS_INTERNAL_ERROR : 1 /// PT_STATUS_NOT_PERMITTED : 16 /// PT_STATUS_FLASH_WRITE_LIMIT_EXCEEDED : 38 /// PT_STATUS_INVALID_HANDLE : 2053 /// PT_STATUS_AUDIT_FAIL : 2075 /// public virtual uint SetAclEnabledState(uint? inHandle,bool? inEnabled) { SetAclEnabledState_INPUT input = new SetAclEnabledState_INPUT(this.XmlNamespace); if (inHandle.HasValue) input.Handle=inHandle.Value; if (inEnabled.HasValue) input.Enabled=inEnabled.Value; SetAclEnabledState_OUTPUT output = new SetAclEnabledState_OUTPUT(); uint returnValue = base.Invoke("SetAclEnabledState",input,out output); return returnValue; } /// ///Gets the state of a user ACL entry (enabled/disabled) /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService", IsNullable=false)] private class GetAclEnabledState_INPUT : CimParams { public GetAclEnabledState_INPUT(string ns) : base(ns) { } /// /// Required, Specifies the ACL entry /// [CimField(false,true)] public virtual uint Handle { set { this.SetOrAddField("Handle",value.ToString(CultureInfo.InvariantCulture)); } } } /// ///Gets the state of a user ACL entry (enabled/disabled) /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService", IsNullable=false)] private class GetAclEnabledState_OUTPUT : CimParams { public GetAclEnabledState_OUTPUT() : base("") { } /// /// Required, Specifies the state of the ACL entry /// [CimField(false,true)] public virtual bool Enabled { get { return bool.Parse(this["Enabled"][0]); } } } /// ///Gets the state of a user ACL entry (enabled/disabled) /// /// Required, IN -Specifies the ACL entry /// OUT - Specifies the state of the ACL entry /// /// Legal values: /// PT_STATUS_SUCCESS : 0 /// PT_STATUS_INTERNAL_ERROR : 1 /// PT_STATUS_INVALID_HANDLE : 2053 /// public virtual uint GetAclEnabledState(uint? inHandle,out bool outEnabled) { GetAclEnabledState_INPUT input = new GetAclEnabledState_INPUT(this.XmlNamespace); if (inHandle.HasValue) input.Handle=inHandle.Value; GetAclEnabledState_OUTPUT output = new GetAclEnabledState_OUTPUT(); uint returnValue = base.Invoke("GetAclEnabledState",input,out output); outEnabled=false; if (returnValue == 0) { if (output.ContainsField("Enabled")) outEnabled = output.Enabled; } return returnValue; } /// /// Enumerate instances of AMT_AuthorizationService class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of AMT_AuthorizationService 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_AuthorizationService class at an endpoint. /// /// WS-Management client /// Collection of AMT_AuthorizationService objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of AMT_AuthorizationService 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_AuthorizationService class. /// public new class CimKeys : CIM_Service.CimKeys { } } }