53 references to IdentityClaim
System.ServiceModel (46)
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 (1)
94
Claim claim = identity.
IdentityClaim
;
System\ServiceModel\DnsEndpointIdentity.cs (1)
41
writer.WriteElementString(XD.AddressingDictionary.Dns, XD.AddressingDictionary.IdentityExtensionNamespace, (string)this.
IdentityClaim
.Resource);
System\ServiceModel\EndpointIdentity.cs (5)
168
return Matches(otherIdentity.
IdentityClaim
);
173
return GetClaimComparer().GetHashCode(this.
IdentityClaim
);
178
return "identity(" + this.
IdentityClaim
+ ")";
183
return GetClaimComparer().Equals(this.
IdentityClaim
, claim);
264
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.UnrecognizedIdentityPropertyType, this.
IdentityClaim
.GetType().ToString())));
System\ServiceModel\RsaEndpointIdentity.cs (1)
73
RSA rsa = (RSA)this.
IdentityClaim
.Resource;
System\ServiceModel\Security\IdentityVerifier.cs (14)
125
if (identity.
IdentityClaim
!= null
126
&& identity.
IdentityClaim
.ClaimType == ClaimTypes.Dns
127
&& identity.
IdentityClaim
.Right == Rights.PossessProperty
128
&& identity.
IdentityClaim
.Resource is string)
130
string expectedDnsName = (string)identity.
IdentityClaim
.Resource;
286
if (claimSet.ContainsClaim(identity.
IdentityClaim
))
288
SecurityTraceRecordHelper.TraceIdentityVerificationSuccess(eventTraceActivity, identity, identity.
IdentityClaim
, this.GetType());
294
if (ClaimTypes.Dns.Equals(identity.
IdentityClaim
.ClaimType))
296
expectedSpn = string.Format(CultureInfo.InvariantCulture, "host/{0}", (string)identity.
IdentityClaim
.Resource);
306
if (ClaimTypes.Sid.Equals(identity.
IdentityClaim
.ClaimType))
308
identitySid = GetSecurityIdentifier(identity.
IdentityClaim
);
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\SecurityUtils.cs (6)
733
if (ClaimTypes.Spn.Equals(identity.
IdentityClaim
.ClaimType))
735
spn = (string)identity.
IdentityClaim
.Resource;
738
else if (ClaimTypes.Upn.Equals(identity.
IdentityClaim
.ClaimType))
740
spn = (string)identity.
IdentityClaim
.Resource;
743
else if (ClaimTypes.Dns.Equals(identity.
IdentityClaim
.ClaimType))
745
spn = String.Format(CultureInfo.InvariantCulture, "host/{0}", (string)identity.
IdentityClaim
.Resource);
System\ServiceModel\Security\SimpleSecurityTokenProvider.cs (2)
103
claims.Add(endpointIdentity.
IdentityClaim
);
105
policies.Add(new UnconditionalPolicy(SecurityUtils.CreateIdentity(endpointIdentity.
IdentityClaim
.Resource.ToString()),
System\ServiceModel\Security\SpnegoTokenProvider.cs (1)
239
Claim identityClaim = identity.
IdentityClaim
;
System\ServiceModel\Security\Tokens\IssuedSecurityTokenProvider.cs (2)
939
claims.Add(identity.
IdentityClaim
);
942
policies.Add(new UnconditionalPolicy(SecurityUtils.CreateIdentity(identity.
IdentityClaim
.Resource.ToString()),
System\ServiceModel\SpnEndpointIdentity.cs (6)
76
writer.WriteElementString(XD.AddressingDictionary.Spn, XD.AddressingDictionary.IdentityExtensionNamespace, (string)this.
IdentityClaim
.Resource);
81
Fx.Assert(ClaimTypes.Spn.Equals(this.
IdentityClaim
.ClaimType) || ClaimTypes.Dns.Equals(this.
IdentityClaim
.ClaimType), "");
92
if (ClaimTypes.Dns.Equals(this.
IdentityClaim
.ClaimType))
94
spn = "host/" + (string)this.
IdentityClaim
.Resource;
98
spn = (string)this.
IdentityClaim
.Resource;
System\ServiceModel\UpnEndpointIdentity.cs (3)
174
writer.WriteElementString(XD.AddressingDictionary.Upn, XD.AddressingDictionary.IdentityExtensionNamespace, (string)this.
IdentityClaim
.Resource);
179
Fx.Assert(ClaimTypes.Upn.Equals(this.
IdentityClaim
.ClaimType), "");
184
string upn = (string)this.
IdentityClaim
.Resource;
System.ServiceModel.Activities (7)
System\ServiceModel\XamlIntegration\EndpointIdentityExtension.cs (3)
29
this.ClaimType = identity.
IdentityClaim
.ClaimType;
30
this.ClaimRight = identity.
IdentityClaim
.Right;
31
this.ClaimResource = identity.
IdentityClaim
.Resource;
System\ServiceModel\XamlIntegration\SpnEndpointIdentityExtension.cs (2)
27
Fx.Assert(identity.
IdentityClaim
.Resource is string, "SpnEndpointIdentity claim resource is not string");
28
this.SpnName = (string)identity.
IdentityClaim
.Resource;
System\ServiceModel\XamlIntegration\UpnEndpointIdentityExtension.cs (2)
27
Fx.Assert(identity.
IdentityClaim
.Resource is string, "UpnEndpointIdentity claim resource is not string");
28
this.UpnName = (string)identity.
IdentityClaim
.Resource;