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

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

공개 메소드들

메소드 설명
DemandClaim ( this identity, Predicate predicate ) : void

Demands a specific claim.

DemandClaim ( this identity, string claimType ) : void

Demands a specific claim.

DemandClaim ( this identity, string claimType, string value ) : void

Demands a specific claim.

DemandClaim ( this identity, string claimType, string value, string issuer ) : void

Demands a specific claim.

GetClaimValue ( this identity, string claimType ) : string

Retrieves the value of a claim.

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

Retrieves the value of a claim.

GetIssuerName ( this identity ) : string

Retrieves the issuer name of an IClaimsIdentity. The algorithm checks the name claim first, and if no name is found, the first claim.

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

Tries to retrieve the value of a claim.

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

Tries to retrieve the value of a claim.

메소드 상세

DemandClaim() 공개 정적인 메소드

Demands a specific claim.
public static DemandClaim ( this identity, Predicate predicate ) : void
identity this The principal.
predicate Predicate The search predicate.
리턴 void

DemandClaim() 공개 정적인 메소드

Demands a specific claim.
public static DemandClaim ( this identity, string claimType ) : void
identity this The identity.
claimType string Type of the claim.
리턴 void

DemandClaim() 공개 정적인 메소드

Demands a specific claim.
public static DemandClaim ( this identity, string claimType, string value ) : void
identity this The identity.
claimType string Type of the claim.
value string The value.
리턴 void

DemandClaim() 공개 정적인 메소드

Demands a specific claim.
public static DemandClaim ( this identity, string claimType, string value, string issuer ) : void
identity this The identity.
claimType string Type of the claim.
value string The value.
issuer string The issuer.
리턴 void

GetClaimValue() 공개 정적인 메소드

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

GetClaimValue() 공개 정적인 메소드

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

GetIssuerName() 공개 정적인 메소드

Retrieves the issuer name of an IClaimsIdentity. The algorithm checks the name claim first, and if no name is found, the first claim.
public static GetIssuerName ( this identity ) : string
identity this The identity.
리턴 string

TryGetClaimValue() 공개 정적인 메소드

Tries to retrieve the value of a claim.
public static TryGetClaimValue ( this identity, string claimType, string &claimValue ) : bool
identity this The identity.
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 identity, string claimType, string issuer, string &claimValue ) : bool
identity this The identity.
claimType string Type of the claim.
issuer string The issuer.
claimValue string The claim value.
리턴 bool