Class ClaimIdentityDefinition
Represents serializable value of a pre-configured claim type. This identity is used to authenticate a user by a value of specific claim type (usually NameIdentifier).
Inherited Members
Namespace: Nevatech.Vsb.Repository.Services.Identities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class ClaimIdentityDefinition : IdentityDefinitionBase, IValidator, IExtensibleDataObject
  Constructors
ClaimIdentityDefinition()
Initializes an empty instance.
Declaration
public ClaimIdentityDefinition()
  ClaimIdentityDefinition(Identity)
Initializes new instance from provided Identity object.
Declaration
public ClaimIdentityDefinition(Identity identity)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Identity | identity | Identity object used to populate new instance.  | 
      
ClaimIdentityDefinition(String, String)
Initializes new instance from the provided claim name and issuer.
Declaration
public ClaimIdentityDefinition(string claimValue, string claimIssuer = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| String | claimValue | Claim value to be stored in new instance.  | 
      
| String | claimIssuer | Claim issuer to be stored in new instance.  | 
      
Fields
PropertySeparator
A token that separates claim properties (value and issuer) in the lookup value.
Declaration
public const string PropertySeparator = "~|~"
  Field Value
| Type | Description | 
|---|---|
| String | 
Properties
ClaimIssuer
Gets or sets the claim issuer (optional).
Declaration
public string ClaimIssuer { get; set; }
  Property Value
| Type | Description | 
|---|---|
| String | 
ClaimValue
Gets or sets the claim value.
Declaration
public string ClaimValue { get; set; }
  Property Value
| Type | Description | 
|---|---|
| String | 
FriendlyName
Gets or sets the friendly name describing stored identity.
Declaration
public override string FriendlyName { get; set; }
  Property Value
| Type | Description | 
|---|---|
| String | 
Overrides
Kind
Gets stored identity kind (like X.509 certificate, SPN, etc).
Declaration
public override IdentityKind Kind { get; protected set; }
  Property Value
| Type | Description | 
|---|---|
| IdentityKind | 
Overrides
Methods
GetIdentity()
Returns Identity object populated with the data stored in this instance.
Declaration
public override Identity GetIdentity()
  Returns
| Type | Description | 
|---|---|
| Identity | Identity object populated with the data stored in this instance.  | 
      
Overrides
Validate()
Validates this domain object's state.
Declaration
public override bool Validate()
  Returns
| Type | Description | 
|---|---|
| Boolean | True if object's state is valid; otherwise, false.  |