C# Класс Thinktecture.IdentityModel.Extensions.IClaimsPrincipalExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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