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 |
---|---|
System.Byte[] |
Properties
Description
Gets or sets the identity description.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.Nullable<System.DateTime> |
FolderId
Gets or sets identifier of folder that identity belongs to.
Declaration
public int? FolderId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
FriendlyName
Gets or sets friendly name describing stored identity.
Declaration
public string FriendlyName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IsMajorObject
Gets the flag indicating that current object is a major entity.
Declaration
public override bool IsMajorObject { get; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.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 |
---|---|
System.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 |
---|---|---|
System.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 |
---|---|
System.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 |
---|---|---|
System.Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.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 |
---|---|
System.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 |
---|---|
System.String | A string that represents the current object. |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public override bool Validate()
Returns
Type | Description |
---|---|
System.Boolean | True if state is valid; otherwise, false. |