本文整理汇总了C#中ClaimSet.GetIdentityClaim方法的典型用法代码示例。如果您正苦于以下问题:C# ClaimSet.GetIdentityClaim方法的具体用法?C# ClaimSet.GetIdentityClaim怎么用?C# ClaimSet.GetIdentityClaim使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ClaimSet
的用法示例。
在下文中一共展示了ClaimSet.GetIdentityClaim方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FindClaim
public static Claim FindClaim(this IEnumerable<ClaimSet> claimSets, string claimType, string right, ClaimSet issuerClaimSet)
{
return claimSets.FindClaim(claimType, right, issuerClaimSet.GetIdentityClaim(), ClaimSearchMode.Issued);
}
示例2: ContainsClaim
public static bool ContainsClaim(this IEnumerable<ClaimSet> claimSets, string claimType, object resource, string right, ClaimSet issuerClaimSet)
{
Claim searchClaim = new Claim(claimType, resource, right);
return claimSets.ContainsClaim(searchClaim, issuerClaimSet.GetIdentityClaim(), ClaimSearchMode.Issued, null);
}
示例3: GetClaimSetsByIssuer
public static IEnumerable<ClaimSet> GetClaimSetsByIssuer(this IEnumerable<ClaimSet> claimSets, ClaimSet issuerClaimSet)
{
if (issuerClaimSet == null)
{
throw new ArgumentNullException("issuerClaimSet");
}
return claimSets.GetClaimSetsByIssuer(issuerClaimSet.GetIdentityClaim());
}
示例4: FindIdentityClaim
public static Claim FindIdentityClaim(this IEnumerable<ClaimSet> claimSets, ClaimSet issuerClaimSet)
{
return claimSets.FindIdentityClaim(issuerClaimSet.GetIdentityClaim());
}
示例5: FindClaims
public static IEnumerable<Claim> FindClaims(this IEnumerable<ClaimSet> claimSets, string claimType, ClaimSet issuerClaimSet)
{
return claimSets.FindClaims(claimType, Rights.PossessProperty, issuerClaimSet.GetIdentityClaim(), ClaimSearchMode.Issued);
}