Метод | Описание | |
---|---|---|
ClaimExists ( this principal, Predicate |
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.
|
public static ClaimExists ( this principal, Predicate |
||
principal | this | The principal. |
predicate | Predicate |
The search predicate. |
Результат | bool |
public static ClaimExists ( this principal, string claimType ) : bool | ||
principal | this | The principal. |
claimType | string | Type of the claim. |
Результат | bool |
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 |
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 |
public static First ( this principal ) : IClaimsIdentity | ||
principal | this | The principal. |
Результат | IClaimsIdentity |
public static GetClaimValue ( this principal, string claimType ) : string | ||
principal | this | The principal. |
claimType | string | Type of the claim. |
Результат | string |
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 |
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 |
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 |