104 references to ClaimType
System.IdentityModel (47)
System\IdentityModel\Claims\ClaimComparer.cs (3)
143
if (claim1.
ClaimType
!= claim2.
ClaimType
|| claim1.Right != claim2.Right)
154
return claim.
ClaimType
.GetHashCode() ^ claim.Right.GetHashCode()
System\IdentityModel\Claims\ClaimsConversionHelper.cs (19)
115
claimType = claim.
ClaimType
;
118
if (StringComparer.Ordinal.Equals(claim.
ClaimType
, ClaimTypes.Sid))
139
if (StringComparer.Ordinal.Equals(claim.
ClaimType
, ClaimTypes.Sid) && claim.Resource is SecurityIdentifier)
151
else if (StringComparer.Ordinal.Equals(claim.
ClaimType
, ClaimTypes.Email) && claim.Resource is MailAddress)
153
_type = claim.
ClaimType
;
156
else if (StringComparer.Ordinal.Equals(claim.
ClaimType
, ClaimTypes.Thumbprint) && claim.Resource is byte[])
158
_type = claim.
ClaimType
;
162
else if (StringComparer.Ordinal.Equals(claim.
ClaimType
, ClaimTypes.Hash) && claim.Resource is byte[])
164
_type = claim.
ClaimType
;
168
else if (StringComparer.Ordinal.Equals(claim.
ClaimType
, ClaimTypes.NameIdentifier) && claim.Resource is SamlNameIdentifierClaimResource)
170
_type = claim.
ClaimType
;
183
else if (StringComparer.Ordinal.Equals(claim.
ClaimType
, ClaimTypes.X500DistinguishedName) && claim.Resource is X500DistinguishedName)
185
_type = claim.
ClaimType
;
189
else if (StringComparer.Ordinal.Equals(claim.
ClaimType
, ClaimTypes.Uri) && claim.Resource is Uri)
191
_type = claim.
ClaimType
;
194
else if (StringComparer.Ordinal.Equals(claim.
ClaimType
, ClaimTypes.Rsa) && claim.Resource is RSA)
196
_type = claim.
ClaimType
;
200
else if (StringComparer.Ordinal.Equals(claim.
ClaimType
, ClaimTypes.DenyOnlySid) && claim.Resource is SecurityIdentifier)
202
_type = claim.
ClaimType
;
System\IdentityModel\Claims\ClaimSet.cs (1)
94
IEnumerable<Claim> claims = FindClaims(claim.
ClaimType
, claim.Right);
System\IdentityModel\Claims\DefaultClaimSet.cs (1)
78
(anyClaimType || claimType == claim.
ClaimType
) &&
System\IdentityModel\Claims\WindowsClaimSet.cs (3)
216
if (claimType == sid.
ClaimType
)
228
if (claimType == sid.
ClaimType
)
246
(anyClaimType || claimType == claim.
ClaimType
) &&
System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
269
(anyClaimType || claimType.Equals(claim.
ClaimType
)) &&
System\IdentityModel\Tokens\SamlAttribute.cs (7)
68
int lastSlashIndex = claim.
ClaimType
.LastIndexOf('/');
69
if ((lastSlashIndex == -1) || (lastSlashIndex == 0) || (lastSlashIndex == claim.
ClaimType
.Length - 1))
72
this.name = claim.
ClaimType
;
76
this.nameSpace = StringUtil.OptimizeString(claim.
ClaimType
.Substring(0, lastSlashIndex));
77
this.name = StringUtil.OptimizeString(claim.
ClaimType
.Substring(lastSlashIndex + 1, claim.
ClaimType
.Length - (lastSlashIndex + 1)));
79
this.claimType = claim.
ClaimType
;
System\IdentityModel\Tokens\SessionSecurityToken.cs (12)
1519
else if (SysClaimTypes.Sid.Equals(claim.
ClaimType
))
1527
else if (SysClaimTypes.DenyOnlySid.Equals(claim.
ClaimType
))
1535
else if (SysClaimTypes.X500DistinguishedName.Equals(claim.
ClaimType
))
1544
else if (SysClaimTypes.Thumbprint.Equals(claim.
ClaimType
))
1553
else if (SysClaimTypes.Name.Equals(claim.
ClaimType
))
1561
else if (SysClaimTypes.Dns.Equals(claim.
ClaimType
))
1569
else if (SysClaimTypes.Rsa.Equals(claim.
ClaimType
))
1577
else if (SysClaimTypes.Email.Equals(claim.
ClaimType
))
1590
else if (SysClaimTypes.Hash.Equals(claim.
ClaimType
))
1599
else if (SysClaimTypes.Spn.Equals(claim.
ClaimType
))
1607
else if (SysClaimTypes.Upn.Equals(claim.
ClaimType
))
1615
else if (SysClaimTypes.Uri.Equals(claim.
ClaimType
))
System.ServiceModel (56)
System\ServiceModel\Channels\HttpsChannelFactory.cs (3)
113
|| ClaimTypes.Spn.Equals(identity.IdentityClaim.
ClaimType
)
114
|| ClaimTypes.Upn.Equals(identity.IdentityClaim.
ClaimType
)
115
|| ClaimTypes.Dns.Equals(identity.IdentityClaim.
ClaimType
);
System\ServiceModel\Channels\PeerSecurityHelpers.cs (1)
143
return identity.IdentityClaim.
ClaimType
== PeerClaimType;
System\ServiceModel\Configuration\IdentityElement.cs (4)
95
if (ClaimTypes.Dns.Equals(claim.
ClaimType
))
99
else if (ClaimTypes.Spn.Equals(claim.
ClaimType
))
103
else if (ClaimTypes.Upn.Equals(claim.
ClaimType
))
107
else if (ClaimTypes.Rsa.Equals(claim.
ClaimType
))
System\ServiceModel\Diagnostics\PeerNodeTraceRecord.cs (3)
241
if (claim.
ClaimType
== ClaimTypes.Name)
243
else if (claim.
ClaimType
== ClaimTypes.X500DistinguishedName)
247
else if (claim.
ClaimType
== ClaimTypes.Thumbprint)
System\ServiceModel\Diagnostics\SecurityTraceRecordHelper.cs (3)
600
xml.WriteElementString("ClaimType", claim.
ClaimType
);
1122
if (claim.
ClaimType
!= null)
1123
xml.WriteElementString("ClaimType", claim.
ClaimType
);
System\ServiceModel\DnsEndpointIdentity.cs (2)
30
if (!identity.
ClaimType
.Equals(ClaimTypes.Dns))
31
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.UnrecognizedClaimTypeForIdentity, identity.
ClaimType
, ClaimTypes.Dns));
System\ServiceModel\EndpointIdentity.cs (4)
74
if (identity.
ClaimType
.Equals(ClaimTypes.Dns))
78
else if (identity.
ClaimType
.Equals(ClaimTypes.Spn))
82
else if (identity.
ClaimType
.Equals(ClaimTypes.Upn))
86
else if (identity.
ClaimType
.Equals(ClaimTypes.Rsa))
System\ServiceModel\RsaEndpointIdentity.cs (2)
46
if (!identity.
ClaimType
.Equals(ClaimTypes.Rsa))
47
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.UnrecognizedClaimTypeForIdentity, identity.
ClaimType
, ClaimTypes.Rsa));
System\ServiceModel\Security\IdentityModelServiceAuthorizationManager.cs (3)
739
if (claim1.
ClaimType
!= claim2.
ClaimType
|| claim1.Right != claim2.Right)
754
return claim.
ClaimType
.GetHashCode() ^ claim.Right.GetHashCode()
System\ServiceModel\Security\IdentityVerifier.cs (6)
126
&& identity.IdentityClaim.
ClaimType
== ClaimTypes.Dns
294
if (ClaimTypes.Dns.Equals(identity.IdentityClaim.
ClaimType
))
306
if (ClaimTypes.Sid.Equals(identity.IdentityClaim.
ClaimType
))
310
else if (ClaimTypes.Upn.Equals(identity.IdentityClaim.
ClaimType
))
314
else if (ClaimTypes.Spn.Equals(identity.IdentityClaim.
ClaimType
))
318
else if (ClaimTypes.Dns.Equals(identity.IdentityClaim.
ClaimType
))
System\ServiceModel\Security\SctClaimSerializer.cs (12)
65
else if (ClaimTypes.Sid.Equals(claim.
ClaimType
))
73
else if (ClaimTypes.DenyOnlySid.Equals(claim.
ClaimType
))
81
else if (ClaimTypes.X500DistinguishedName.Equals(claim.
ClaimType
))
90
else if (ClaimTypes.Thumbprint.Equals(claim.
ClaimType
))
99
else if (ClaimTypes.Name.Equals(claim.
ClaimType
))
107
else if (ClaimTypes.Dns.Equals(claim.
ClaimType
))
115
else if (ClaimTypes.Rsa.Equals(claim.
ClaimType
))
123
else if (ClaimTypes.Email.Equals(claim.
ClaimType
))
136
else if (ClaimTypes.Hash.Equals(claim.
ClaimType
))
145
else if (ClaimTypes.Spn.Equals(claim.
ClaimType
))
153
else if (ClaimTypes.Upn.Equals(claim.
ClaimType
))
161
else if (ClaimTypes.Uri.Equals(claim.
ClaimType
))
System\ServiceModel\Security\SecurityUtils.cs (3)
733
if (ClaimTypes.Spn.Equals(identity.IdentityClaim.
ClaimType
))
738
else if (ClaimTypes.Upn.Equals(identity.IdentityClaim.
ClaimType
))
743
else if (ClaimTypes.Dns.Equals(identity.IdentityClaim.
ClaimType
))
System\ServiceModel\Security\SpnegoTokenProvider.cs (2)
240
if (identityClaim != null && (identityClaim.
ClaimType
== ClaimTypes.Spn || identityClaim.
ClaimType
== ClaimTypes.Upn))
System\ServiceModel\SpnEndpointIdentity.cs (5)
65
if (!identity.
ClaimType
.Equals(ClaimTypes.Spn))
66
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.UnrecognizedClaimTypeForIdentity, identity.
ClaimType
, ClaimTypes.Spn));
81
Fx.Assert(ClaimTypes.Spn.Equals(this.IdentityClaim.
ClaimType
) || ClaimTypes.Dns.Equals(this.IdentityClaim.
ClaimType
), "");
92
if (ClaimTypes.Dns.Equals(this.IdentityClaim.
ClaimType
))
System\ServiceModel\UpnEndpointIdentity.cs (3)
43
if (!identity.
ClaimType
.Equals(ClaimTypes.Upn))
44
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.UnrecognizedClaimTypeForIdentity, identity.
ClaimType
, ClaimTypes.Upn));
179
Fx.Assert(ClaimTypes.Upn.Equals(this.IdentityClaim.
ClaimType
), "");
System.ServiceModel.Activities (1)
System\ServiceModel\XamlIntegration\EndpointIdentityExtension.cs (1)
29
this.ClaimType = identity.IdentityClaim.
ClaimType
;