Class Identity
Represents the endpoint's or node's identity.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
[DataContract(Namespace = "http://schemas.nevatech.com/sentinet/2011/02")]
public class Identity : DomainObjectBase, IValidator, IExtensibleDataObject, IEquatable<Identity>, IFolderEntity
Constructors
Identity()
Initializes a new instance of the Identity object.
Declaration
public Identity()
Fields
Data
Gets or sets identity value in decrypted binary format.
Declaration
[DataMember]
[SuppressMessage("Microsoft.Design", "CA1051:DoNotDeclareVisibleInstanceFields")]
public byte[] Data
Field Value
| Type | Description |
|---|---|
| byte[] |
Properties
Description
Gets or sets the identity description.
Declaration
[DataMember(EmitDefaultValue = false)]
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Expired
Gets or sets the UTC date and time when identity expires and can no longer be used. If Null, then identity never expires.
Declaration
[DataMember(EmitDefaultValue = false)]
public DateTime? Expired { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
FolderId
Gets or sets identifier of folder that identity belongs to.
Declaration
[DataMember(EmitDefaultValue = false)]
public int? FolderId { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
FriendlyName
Gets or sets friendly name describing stored identity.
Declaration
[DataMember]
public string FriendlyName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
IsMajorObject
Gets the flag indicating that current object is a major entity.
Declaration
public override bool IsMajorObject { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
IsPublic
Gets or sets flag telling that identity is public and can be shared across multiple endpoints. This property cannot be changed in an existing identity.
Declaration
[DataMember(EmitDefaultValue = false)]
public bool IsPublic { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Kind
Gets or sets stored identity kind (like X.509 certificate, SPN, etc).
Declaration
[DataMember]
public IdentityKind Kind { get; set; }
Property Value
| Type | Description |
|---|---|
| IdentityKind |
LookupValue
Gets or sets identity search key that allows for indexed search.
Declaration
[DataMember]
public string LookupValue { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
The key is: 1. 'domain\username' (lowercased) - for Windows identity; 2. 'username' (lowercased) - for username\password identity; 3. Base64-encoded thumbprint - for X.509 certificate; 4. 'SPN'/'UPN' (lowercased) - for SPN/UPN identities; 5. 'IssuerName' (lowercased) - for Windows Azure shared secret.
ObjectType
Gets object type identifier.
Declaration
public override EntityType ObjectType { get; }
Property Value
| Type | Description |
|---|---|
| EntityType |
Overrides
Methods
Clone(bool)
Creates and returns an exact copy of this object.
Declaration
public Identity Clone(bool exactCopy)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | exactCopy | Flag indicating that all properties including keys, identifiers, and time stamps must be cloned. |
Returns
| Type | Description |
|---|---|
| Identity | Exact copy of this object. |
Equals(Identity)
Determines whether the specified identity is equal to the current object.
Declaration
public bool Equals(Identity other)
Parameters
| Type | Name | Description |
|---|---|---|
| Identity | other | The identity to compare with the current identity. |
Returns
| Type | Description |
|---|---|
| bool | True, if identities are equal. False, if identities are not equal. |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | True, if objects are equal. False, if objects are not equal. |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | Hash code of the current instance. |
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public override bool Validate()
Returns
| Type | Description |
|---|---|
| bool | True if state is valid; otherwise, false. |