//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: CIM_SharedCredential.cs
//
// Contents: SharedCredential is a secret (such as a password or the response to a challenge question) that is shared between a principal and a particular SharedCredential security service. Secrets may be in the form of a password used for initial authentication, or as with a session key, used as part of a message to verify the originator of the message. It is important to note that SharedCredential is not just a password, but rather is the password used with a particular security service.
// This file was automatically generated from CIM_SharedCredential.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
{
///
///SharedCredential is a secret (such as a password or the response to a challenge question) that is shared between a principal and a particular SharedCredential security service. Secrets may be in the form of a password used for initial authentication, or as with a session key, used as part of a message to verify the originator of the message. It is important to note that SharedCredential is not just a password, but rather is the password used with a particular security service.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_SharedCredential")]
[System.Xml.Serialization.XmlRootAttribute("CIM_SharedCredential", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_SharedCredential", IsNullable=false)]
public class CIM_SharedCredential : CIM_Credential
{
///
/// Default constructor.
///
public CIM_SharedCredential() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public CIM_SharedCredential(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public CIM_SharedCredential(IWSManClient client): base(client)
{
}
///
/// Remove Algorithm field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveAlgorithm()
{
RemoveField("Algorithm");
}
///
/// Is true if the field Algorithm exists in the current object,
/// otherwise is false.
///
public virtual bool AlgorithmExist
{
get
{
return ContainsField("Algorithm");
}
}
///
/// Optional, The transformation algorithm, if any, used to protect passwords before use in the protocol. For instance, Kerberos doesn't store passwords as the shared secret, but rather, a hash of the password.
///
[CimField(false, false)]
public virtual string Algorithm
{
get
{
return this.GetField("Algorithm")[0];
}
set
{
this.SetOrAddField("Algorithm",value);
}
}
///
/// Key, Required, Within the scope of the instantiating Namespace, InstanceID opaquely and uniquely identifies an instance of this class. In order to ensure uniqueness within the NameSpace, the value of InstanceID SHOULD be constructed using the following 'preferred' algorithm:
/// <OrgID>:<LocalID>
/// Where <OrgID> and <LocalID> are separated by a colon ':', and where <OrgID> MUST include a copyrighted, trademarked or otherwise unique name that is owned by the business entity creating/defining the InstanceID, or is a registered ID that is assigned to the business entity by a recognized global authority. (This is similar to the <Schema Name>_<Class Name> structure of Schema class names.) In addition, to ensure uniqueness, <OrgID> MUST NOT contain a colon (':'). When using this algorithm, the first colon to appear in InstanceID MUST appear between <OrgID> and <LocalID>.
/// <LocalID> is chosen by the organizational entity and SHOULD not be re-used to identify different underlying (real-world) elements. If the above 'preferred' algorithm is not used, the defining entity MUST assure that the resultant InstanceID is not re-used across any InstanceIDs produced by this or other providers for this instance's NameSpace.
/// For DMTF defined instances, the 'preferred' algorithm MUST be used with the <OrgID> set to 'CIM'.
///
[CimField(true, true)]
public override string InstanceID
{
get
{
return this.GetField("InstanceID")[0];
}
set
{
this.SetOrAddField("InstanceID",value);
}
}
///
/// Remove Protocol field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveProtocol()
{
RemoveField("Protocol");
}
///
/// Is true if the field Protocol exists in the current object,
/// otherwise is false.
///
public virtual bool ProtocolExist
{
get
{
return ContainsField("Protocol");
}
}
///
/// Optional, The protocol with which the SharedCredential is used.
///
[CimField(false, false)]
public virtual string Protocol
{
get
{
return this.GetField("Protocol")[0];
}
set
{
this.SetOrAddField("Protocol",value);
}
}
///
/// Remove RemoteID field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveRemoteID()
{
RemoveField("RemoteID");
}
///
/// Is true if the field RemoteID exists in the current object,
/// otherwise is false.
///
public virtual bool RemoteIDExist
{
get
{
return ContainsField("RemoteID");
}
}
///
/// Optional, RemoteID is the name by which the principal is known at the remote secret key authentication service.
///
[CimField(false, false)]
public virtual string RemoteID
{
get
{
return this.GetField("RemoteID")[0];
}
set
{
this.SetOrAddField("RemoteID",value);
}
}
///
/// Remove Secret field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveSecret()
{
RemoveField("Secret");
}
///
/// Is true if the field Secret exists in the current object,
/// otherwise is false.
///
public virtual bool SecretExist
{
get
{
return ContainsField("Secret");
}
}
///
/// Optional, The secret known by the principal.
///
[CimField(false, false)]
public virtual string Secret
{
get
{
return this.GetField("Secret")[0];
}
set
{
this.SetOrAddField("Secret",value);
}
}
///
/// Enumerate instances of CIM_SharedCredential class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of CIM_SharedCredential objects
public static new Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List ret = CimBase.Enumerate(client, cimKeys);
return new Collection(ret);
}
///
/// Enumerate instances of CIM_SharedCredential class at an endpoint.
///
/// WS-Management client
/// Collection of CIM_SharedCredential objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of CIM_SharedCredential 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 CIM_SharedCredential class.
///
public new class CimKeys : CIM_Credential.CimKeys
{
///
/// Key, Required, Within the scope of the instantiating Namespace, InstanceID opaquely and uniquely identifies an instance of this class. In order to ensure uniqueness within the NameSpace, the value of InstanceID SHOULD be constructed using the following 'preferred' algorithm:
/// <OrgID>:<LocalID>
/// Where <OrgID> and <LocalID> are separated by a colon ':', and where <OrgID> MUST include a copyrighted, trademarked or otherwise unique name that is owned by the business entity creating/defining the InstanceID, or is a registered ID that is assigned to the business entity by a recognized global authority. (This is similar to the <Schema Name>_<Class Name> structure of Schema class names.) In addition, to ensure uniqueness, <OrgID> MUST NOT contain a colon (':'). When using this algorithm, the first colon to appear in InstanceID MUST appear between <OrgID> and <LocalID>.
/// <LocalID> is chosen by the organizational entity and SHOULD not be re-used to identify different underlying (real-world) elements. If the above 'preferred' algorithm is not used, the defining entity MUST assure that the resultant InstanceID is not re-used across any InstanceIDs produced by this or other providers for this instance's NameSpace.
/// For DMTF defined instances, the 'preferred' algorithm MUST be used with the <OrgID> set to 'CIM'.
///
public virtual string InstanceID
{
get
{
return GetKey("InstanceID");
}
set
{
SetOrAddKey("InstanceID", value);
}
}
}
}
}