Show / Hide Table of Contents

    Class Identity

    Represents the endpoint's or node's identity.

    Inheritance
    Object
    DomainObjectBase
    Identity
    IdentityReference
    Implements
    IValidator
    IExtensibleDataObject
    IEquatable<Identity>
    IFolderEntity
    Inherited Members
    DomainObjectBase.IsValidElementName(String)
    DomainObjectBase.AreEqual(Nullable<DateTime>, Nullable<DateTime>)
    DomainObjectBase.Equals(DomainObjectBase)
    DomainObjectBase.Id
    DomainObjectBase.Key
    DomainObjectBase.Created
    DomainObjectBase.Updated
    DomainObjectBase.ErrorMessage
    DomainObjectBase.ExtensionData
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    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
    DomainObjectBase.IsMajorObject

    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:

    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
    DomainObjectBase.ObjectType

    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
    DomainObjectBase.Equals(Object)

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    Hash code of the current instance.

    Overrides
    DomainObjectBase.GetHashCode()

    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
    DomainObjectBase.ToString()

    Validate()

    Evaluates the state of this object.

    Declaration
    public override bool Validate()
    Returns
    Type Description
    Boolean

    True if state is valid; otherwise, false.

    Overrides
    DomainObjectBase.Validate()

    Implements

    IValidator
    System.Runtime.Serialization.IExtensibleDataObject
    System.IEquatable<T>
    IFolderEntity
    Back to top Nevatech Sentinet 6.5 Online Documentation