C# 클래스 Thinktecture.IdentityModel.Extensions.IClaimsPrincipalExtensions

파일 보기 프로젝트 열기: IdentityModel/Thinktecture.IdentityModel.v1

공개 메소드들

메소드 설명
ClaimExists ( this principal, Predicate predicate ) : bool

Checks whether a given claim exists

ClaimExists ( this principal, string claimType ) : bool

Checks whether a given claim exists

ClaimExists ( this principal, string claimType, string value ) : bool

Checks whether a given claim exists.

ClaimExists ( this principal, string claimType, string value, string issuer ) : bool

Checks whether a given claim exists.

First ( this principal ) : IClaimsIdentity

Retrieves the first identity of an IClaimsPrincipal.

GetClaimValue ( this principal, string claimType ) : string

Retrieves the value of a claim.

GetClaimValue ( this principal, string claimType, string issuer ) : string

Retrieves the value of a claim.

TryGetClaimValue ( this principal, string claimType, string &claimValue ) : bool

Tries to retrieve the value of a claim.

TryGetClaimValue ( this principal, string claimType, string issuer, string &claimValue ) : bool

Tries to retrieve the value of a claim.

메소드 상세

ClaimExists() 공개 정적인 메소드

Checks whether a given claim exists
public static ClaimExists ( this principal, Predicate predicate ) : bool
principal this The principal.
predicate Predicate The search predicate.
리턴 bool

ClaimExists() 공개 정적인 메소드

Checks whether a given claim exists
public static ClaimExists ( this principal, string claimType ) : bool
principal this The principal.
claimType string Type of the claim.
리턴 bool

ClaimExists() 공개 정적인 메소드

Checks whether a given claim exists.
public static ClaimExists ( this principal, string claimType, string value ) : bool
principal this The principal.
claimType string Type of the claim.
value string The value.
리턴 bool

ClaimExists() 공개 정적인 메소드

Checks whether a given claim exists.
public static ClaimExists ( this principal, string claimType, string value, string issuer ) : bool
principal this The principal.
claimType string Type of the claim.
value string The value.
issuer string The issuer.
리턴 bool

First() 공개 정적인 메소드

Retrieves the first identity of an IClaimsPrincipal.
public static First ( this principal ) : IClaimsIdentity
principal this The principal.
리턴 IClaimsIdentity

GetClaimValue() 공개 정적인 메소드

Retrieves the value of a claim.
public static GetClaimValue ( this principal, string claimType ) : string
principal this The principal.
claimType string Type of the claim.
리턴 string

GetClaimValue() 공개 정적인 메소드

Retrieves the value of a claim.
public static GetClaimValue ( this principal, string claimType, string issuer ) : string
principal this The principal.
claimType string Type of the claim.
issuer string The issuer.
리턴 string

TryGetClaimValue() 공개 정적인 메소드

Tries to retrieve the value of a claim.
public static TryGetClaimValue ( this principal, string claimType, string &claimValue ) : bool
principal this The principal.
claimType string Type of the claim.
claimValue string The claim value.
리턴 bool

TryGetClaimValue() 공개 정적인 메소드

Tries to retrieve the value of a claim.
public static TryGetClaimValue ( this principal, string claimType, string issuer, string &claimValue ) : bool
principal this The principal.
claimType string Type of the claim.
issuer string The issuer.
claimValue string The claim value.
리턴 bool