Condividi tramite


CaseSensitiveClaimsIdentity Class

Definition

A derived ClaimsIdentity where claim retrieval is case-sensitive. The current ClaimsIdentity retrieves claims in a case-insensitive manner which is different than querying the underlying SecurityToken. The CaseSensitiveClaimsIdentity provides consistent retrieval logic between the SecurityToken and ClaimsIdentity.

[System.Serializable]
public class CaseSensitiveClaimsIdentity : System.Security.Claims.ClaimsIdentity
[<System.Serializable>]
type CaseSensitiveClaimsIdentity = class
    inherit ClaimsIdentity
Public Class CaseSensitiveClaimsIdentity
Inherits ClaimsIdentity
Inheritance
CaseSensitiveClaimsIdentity
Attributes

Constructors

CaseSensitiveClaimsIdentity()

Initializes an instance of CaseSensitiveClaimsIdentity.

CaseSensitiveClaimsIdentity(ClaimsIdentity)

Initializes an instance of CaseSensitiveClaimsIdentity.

CaseSensitiveClaimsIdentity(IEnumerable<Claim>, String, String, String)

Initializes an instance of CaseSensitiveClaimsIdentity.

CaseSensitiveClaimsIdentity(IEnumerable<Claim>, String)

Initializes an instance of CaseSensitiveClaimsIdentity.

CaseSensitiveClaimsIdentity(IEnumerable<Claim>)

Initializes an instance of CaseSensitiveClaimsIdentity.

CaseSensitiveClaimsIdentity(String, String, String)

Initializes an instance of CaseSensitiveClaimsIdentity.

CaseSensitiveClaimsIdentity(String)

Initializes an instance of CaseSensitiveClaimsIdentity.

Properties

SecurityToken

Gets the SecurityToken associated with this claims identity.

Methods

Clone()

Returns a new ClaimsIdentity copied from this claims identity.

FindAll(String)

Retrieves a IEnumerable<T> where each Type equals type.

FindFirst(String)

Retrieves the first Claim where Type equals type.

HasClaim(String, String)

Determines if a claim with type AND value is contained within this claims identity.

Applies to