Class Identity
Represents the endpoint's or node's identity.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
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
public byte[] Data
Field Value
| Type | Description |
|---|---|
| Byte[] |
Properties
Description
Gets or sets the identity description.
Declaration
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
public DateTime? Expired { get; set; }
Property Value
| Type | Description |
|---|---|
| Nullable<DateTime> |
FolderId
Gets or sets identifier of folder that identity belongs to.
Declaration
public int? FolderId { get; set; }
Property Value
| Type | Description |
|---|---|
| Nullable<Int32> |
FriendlyName
Gets or sets friendly name describing stored identity.
Declaration
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 |
|---|---|
| Boolean |
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
public bool IsPublic { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Kind
Gets or sets stored identity kind (like X.509 certificate, SPN, etc).
Declaration
public IdentityKind Kind { get; set; }
Property Value
| Type | Description |
|---|---|
| IdentityKind |
LookupValue
Gets or sets identity search key that allows for indexed search.
Declaration
public string LookupValue { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
Remarks
The key is:
- 'domain\username' (lowercased) - for Windows identity;
- 'username' (lowercased) - for username\password identity;
- Base64-encoded thumbprint - for X.509 certificate;
- 'SPN'/'UPN' (lowercased) - for SPN/UPN identities;
- '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(Boolean)
Creates and returns an exact copy of this object.
Declaration
public Identity Clone(bool exactCopy)
Parameters
| Type | Name | Description |
|---|---|---|
| Boolean | 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 |
|---|---|
| Boolean | 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 |
|---|---|
| Boolean | 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 |
|---|---|
| Int32 | 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 |
|---|---|
| Boolean | True if state is valid; otherwise, false. |