Method | Description | |
---|---|---|
AddIdentities ( IEnumerable |
Adds a IEnumerable{ClaimsIdentity} to the internal list.
|
|
AddIdentity ( |
Adds a single ClaimsIdentity to an internal list.
|
|
ClaimsPrincipal ( ) | ||
ClaimsPrincipal ( System reader ) | ||
ClaimsPrincipal ( System |
||
ClaimsPrincipal ( ) : System.Collections.Generic |
Initializes an instance of ClaimsPrincipal.
|
|
ClaimsPrincipal ( BinaryReader reader ) : System.Collections.Generic |
Initializes an instance of ClaimsPrincipal using a BinaryReader. Normally the BinaryReader is constructed using the bytes from WriteTo(BinaryWriter) and initialized in the same way as the BinaryWriter.
|
|
ClaimsPrincipal ( IEnumerable |
Initializes an instance of ClaimsPrincipal.
|
|
ClaimsPrincipal ( IIdentity identity ) : System.Collections.Generic |
Initializes an instance of ClaimsPrincipal
|
|
ClaimsPrincipal ( IPrincipal principal ) : System.Collections.Generic |
Initializes an instance of ClaimsPrincipal
|
|
Clone ( ) : |
Creates a new instance of ClaimsPrincipal with values copied from this object.
|
|
Clone ( ) : System.Security.Claims.ClaimsPrincipal | ||
FindAll ( Predicate |
Retrieves a IEnumerable{Claim} where each claim is matched by . Each ClaimsIdentity is called. ClaimsIdentity.FindAll. |
|
FindAll ( string type ) : IEnumerable |
Retrieves a IEnumerable{Claim} where each Claim.Type equals type. Each ClaimsIdentity is called. ClaimsIdentity.FindAll. |
|
FindAll ( System |
||
FindAll ( string type ) : System.Collections.Generic.IEnumerable |
||
FindFirst ( Predicate |
Retrieves the first Claim that is matched by . Each ClaimsIdentity is called. ClaimsIdentity.FindFirst. |
|
FindFirst ( string type ) : |
Retrieves the first Claim where the Claim.Type equals type. Each ClaimsIdentity is called. ClaimsIdentity.FindFirst. |
|
FindFirst ( System |
||
FindFirst ( string type ) : System.Security.Claims.Claim | ||
HasClaim ( Predicate |
Determines if a claim is contained within all the ClaimsIdentities in this ClaimPrincipal. Each ClaimsIdentity is called. ClaimsIdentity.HasClaim. |
|
HasClaim ( System |
||
HasClaim ( string type, string value ) : bool |
Determines if a claim of claimType AND claimValue exists in any of the identities. Each ClaimsIdentity is called. ClaimsIdentity.HasClaim. |
|
IsInRole ( string role ) : bool |
IsInRole answers the question: does an identity this principal possesses contain a claim of type RoleClaimType where the value is '==' to the role. Each Identity has its own definition of the ClaimType that represents a role. |
|
WriteTo ( BinaryWriter writer ) : void |
Serializes using a BinaryWriter
|
|
WriteTo ( System writer ) : void |
Method | Description | |
---|---|---|
ClaimsPrincipal ( System info, System context ) | ||
ClaimsPrincipal ( SerializationInfo info, StreamingContext context ) : System.Collections.Generic | ||
CreateClaimsIdentity ( BinaryReader reader ) : |
Provides and extensibility point for derived types to create a custom ClaimsIdentity.
|
|
CreateClaimsIdentity ( System reader ) : System.Security.Claims.ClaimsIdentity | ||
GetObjectData ( SerializationInfo info, StreamingContext context ) : void | ||
GetObjectData ( System info, System context ) : void | ||
WriteTo ( BinaryWriter writer, byte userData ) : void |
Serializes using a BinaryWriter
|
|
WriteTo ( System writer, byte userData ) : void |
Method | Description | |
---|---|---|
AddIdentities ( System |
||
AddIdentity ( System identity ) : void | ||
Initialize ( BinaryReader reader ) : void |
Initializes from a BinaryReader. Normally the reader is initialized with the results from WriteTo(BinaryWriter) Normally the BinaryReader is initialized in the same way as the BinaryWriter passed to WriteTo(BinaryWriter).
|
|
OnSerializingMethod ( StreamingContext context ) : void | ||
SelectPrimaryIdentity ( IEnumerable |
This method iterates through the collection of ClaimsIdentities and chooses an identity as the primary.
|
public AddIdentities ( IEnumerable |
||
identities | IEnumerable |
Enumeration of ClaimsIdentities to add. |
return | void |
public AddIdentity ( |
||
identity | the |
|
return | void |
protected ClaimsPrincipal ( System info, System context ) | ||
info | System | |
context | System |
public ClaimsPrincipal ( ) : System.Collections.Generic | ||
return | System.Collections.Generic |
public ClaimsPrincipal ( BinaryReader reader ) : System.Collections.Generic | ||
reader | BinaryReader | a |
return | System.Collections.Generic |
public ClaimsPrincipal ( IEnumerable |
||
identities | IEnumerable |
|
return | System.Collections.Generic |
public ClaimsPrincipal ( IIdentity identity ) : System.Collections.Generic | ||
identity | IIdentity | |
return | System.Collections.Generic |
public ClaimsPrincipal ( IPrincipal principal ) : System.Collections.Generic | ||
principal | IPrincipal | |
return | System.Collections.Generic |
protected ClaimsPrincipal ( SerializationInfo info, StreamingContext context ) : System.Collections.Generic | ||
info | SerializationInfo | |
context | StreamingContext | |
return | System.Collections.Generic |
public Clone ( ) : System.Security.Claims.ClaimsPrincipal | ||
return | System.Security.Claims.ClaimsPrincipal |
protected CreateClaimsIdentity ( BinaryReader reader ) : |
||
reader | BinaryReader | the |
return |
protected CreateClaimsIdentity ( System reader ) : System.Security.Claims.ClaimsIdentity | ||
reader | System | |
return | System.Security.Claims.ClaimsIdentity |
public FindAll ( Predicate |
||
match | Predicate |
The predicate that performs the matching logic. |
return | IEnumerable |
public FindAll ( string type ) : IEnumerable |
||
type | string | The type of the claim to match. |
return | IEnumerable |
public FindAll ( System |
||
match | System |
|
return | System.Collections.Generic.IEnumerable |
public FindAll ( string type ) : System.Collections.Generic.IEnumerable |
||
type | string | |
return | System.Collections.Generic.IEnumerable |
public FindFirst ( Predicate |
||
match | Predicate |
The predicate that performs the matching logic. |
return |
public FindFirst ( string type ) : |
||
type | string | The type of the claim to match. |
return |
public FindFirst ( System |
||
match | System |
|
return | System.Security.Claims.Claim |
public FindFirst ( string type ) : System.Security.Claims.Claim | ||
type | string | |
return | System.Security.Claims.Claim |
protected GetObjectData ( SerializationInfo info, StreamingContext context ) : void | ||
info | SerializationInfo | |
context | StreamingContext | |
return | void |
protected GetObjectData ( System info, System context ) : void | ||
info | System | |
context | System | |
return | void |
public HasClaim ( Predicate |
||
match | Predicate |
The predicate that performs the matching logic. |
return | bool |
public HasClaim ( string type, string value ) : bool | ||
type | string | the type of the claim to match. |
value | string | the value of the claim to match. |
return | bool |
public IsInRole ( string role ) : bool | ||
role | string | The role to check for. |
return | bool |
public WriteTo ( BinaryWriter writer ) : void | ||
writer | BinaryWriter | |
return | void |
protected WriteTo ( BinaryWriter writer, byte userData ) : void | ||
writer | BinaryWriter | the |
userData | byte | additional data provided by derived type. |
return | void |
protected WriteTo ( System writer, byte userData ) : void | ||
writer | System | |
userData | byte | |
return | void |