//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: CIM_Credential.cs
//
// Contents: Subclasses of CIM_Credential define materials, information or other data which are used to establish identity. Generally, there may be some shared information, or credential material which is used to identify and authenticate an entity in the process of gaining access to, or permission to use, resources. Such credential material may be used to authenticate an entity's identity initially, as done by a CIM_AuthenticationService, and additionally on an ongoing basis (for example, during the course of a connection or other security association), as proof that each received message or communication came from a valid 'user' of that credential material.
// This file was automatically generated from CIM_Credential.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
{
///
///Subclasses of CIM_Credential define materials, information or other data which are used to establish identity. Generally, there may be some shared information, or credential material which is used to identify and authenticate an entity in the process of gaining access to, or permission to use, resources. Such credential material may be used to authenticate an entity's identity initially, as done by a CIM_AuthenticationService, and additionally on an ongoing basis (for example, during the course of a connection or other security association), as proof that each received message or communication came from a valid 'user' of that credential material.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Credential")]
[System.Xml.Serialization.XmlRootAttribute("CIM_Credential", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Credential", IsNullable=false)]
public class CIM_Credential : CIM_ManagedElement
{
///
/// Default constructor.
///
public CIM_Credential() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public CIM_Credential(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public CIM_Credential(IWSManClient client): base(client)
{
}
///
/// Remove Expires field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveExpires()
{
RemoveField("Expires");
}
///
/// Is true if the field Expires exists in the current object,
/// otherwise is false.
///
public virtual bool ExpiresExist
{
get
{
return ContainsField("Expires");
}
}
///
/// Optional, The date and time when the credential expires (and is not appropriate for use for authentication/ authorization). If this information is not applicable, Use a value of '99991231235959.999999+999', (1 microsecond before midnight, December 31, 9999 CE, at coordinated universal time + 999 minutes).
/// On CreateInstance, if this property is unspecified, or set to NULL, then a value of '99991231235959.999999+999' is assumed. Note that this property does not define how the expiration is set - but that there IS an expiration. The property may be set to either a specific date/time or an interval (calculated from the Issued datetime). For example, for Certificate Authority-signed public key, the expiration is determined by the CA. Another example is a voice mail password that expires 60 days after it is set/issued.
///
[CimField(false, false)]
public virtual CimDateTime Expires
{
get
{
return CimDateTime.Parse(this["Expires"][0]);
}
set
{
this.SetOrAddField("Expires",value.ToString());
}
}
///
/// Remove Issued field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveIssued()
{
RemoveField("Issued");
}
///
/// Is true if the field Issued exists in the current object,
/// otherwise is false.
///
public virtual bool IssuedExist
{
get
{
return ContainsField("Issued");
}
}
///
/// Optional, The date and time when the credential was issued. Use a value of all '00000101000000.000000+000', (midnight, January 1, 1 BCE at coordinated universal time +0 minutes), if this information is not applicable. On CreateInstance, if this property is unspecified, or set to NULL, then current time is assumed.
///
[CimField(false, false)]
public virtual CimDateTime Issued
{
get
{
return CimDateTime.Parse(this["Issued"][0]);
}
set
{
this.SetOrAddField("Issued",value.ToString());
}
}
///
/// Enumerate instances of CIM_Credential class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of CIM_Credential 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_Credential class at an endpoint.
///
/// WS-Management client
/// Collection of CIM_Credential objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of CIM_Credential 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_Credential class.
///
public new class CimKeys : CIM_ManagedElement.CimKeys
{
}
}
}