20 instantiations of Claim
dotnet-svcutil-lib (20)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\Claim.cs (9)
85
s_system = new
Claim
(ClaimTypes.System, XsiConstants.System, Rights.Identity);
112
return new
Claim
(ClaimTypes.Dns, dns, Rights.PossessProperty, ClaimComparer.Dns);
120
return new
Claim
(ClaimTypes.Hash, SecurityUtils.CloneBuffer(hash), Rights.PossessProperty, ClaimComparer.Hash);
129
return new
Claim
(ClaimTypes.Name, name, Rights.PossessProperty);
138
return new
Claim
(ClaimTypes.Spn, spn, Rights.PossessProperty);
146
return new
Claim
(ClaimTypes.Thumbprint, SecurityUtils.CloneBuffer(thumbprint), Rights.PossessProperty, ClaimComparer.Thumbprint);
155
return new
Claim
(ClaimTypes.Upn, upn, Rights.PossessProperty, ClaimComparer.Upn);
164
return new
Claim
(ClaimTypes.Uri, uri, Rights.PossessProperty);
182
return new
Claim
(ClaimTypes.X500DistinguishedName, x500DistinguishedName, Rights.PossessProperty, ClaimComparer.X500DistinguishedName);
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\ClaimSet.cs (1)
29
claims.Add(new
Claim
(ClaimTypes.System, XsiConstants.System, Rights.PossessProperty));
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (5)
165
claims.Add(new
Claim
(ClaimTypes.Thumbprint, thumbprint, Rights.Identity));
166
claims.Add(new
Claim
(ClaimTypes.Thumbprint, thumbprint, Rights.PossessProperty));
248
yield return new
Claim
(ClaimTypes.Thumbprint, _certificate.GetCertHash(), Rights.Identity);
252
yield return new
Claim
(ClaimTypes.Thumbprint, _certificate.GetCertHash(), Rights.PossessProperty);
367
claims.Add(new
Claim
(ClaimTypes.X500DistinguishedName, x500DistinguishedName, Rights.Identity));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (2)
512
identityClaim = new
Claim
(ClaimTypes.Upn, principalName, Rights.Identity);
521
identityClaim = new
Claim
(ClaimTypes.Spn, principalName, Rights.Identity);
FrameworkFork\System.ServiceModel\System\ServiceModel\X509CertificateEndpointIdentity.cs (3)
24
base.Initialize(new
Claim
(ClaimTypes.Thumbprint, certificate.GetCertHash(), Rights.PossessProperty));
37
base.Initialize(new
Claim
(ClaimTypes.Thumbprint, primaryCertificate.GetCertHash(), Rights.PossessProperty));
64
base.Initialize(new
Claim
(ClaimTypes.Thumbprint, certificate.GetCertHash(), Rights.PossessProperty));
111 references to Claim
dotnet-svcutil-lib (111)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\Claim.cs (15)
40
private static
Claim
s_system;
49
private IEqualityComparer<
Claim
> _comparer;
51
private Claim(string claimType, object resource, string right, IEqualityComparer<
Claim
> comparer)
72
public static IEqualityComparer<
Claim
> DefaultComparer
76
return EqualityComparer<
Claim
>.Default;
80
public static
Claim
System
107
public static
Claim
CreateDnsClaim(string dns)
115
public static
Claim
CreateHashClaim(byte[] hash)
124
public static
Claim
CreateNameClaim(string name)
133
public static
Claim
CreateSpnClaim(string spn)
141
public static
Claim
CreateThumbprintClaim(byte[] thumbprint)
150
public static
Claim
CreateUpnClaim(string upn)
159
public static
Claim
CreateUriClaim(Uri uri)
177
public static
Claim
CreateX500DistinguishedNameClaim(X500DistinguishedName x500DistinguishedName)
189
return _comparer.Equals(this, obj as
Claim
);
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\ClaimComparer.cs (19)
16
internal class ClaimComparer : IEqualityComparer<
Claim
>
18
private static IEqualityComparer<
Claim
> s_defaultComparer;
19
private static IEqualityComparer<
Claim
> s_hashComparer;
20
private static IEqualityComparer<
Claim
> s_dnsComparer;
21
private static IEqualityComparer<
Claim
> s_rsaComparer;
22
private static IEqualityComparer<
Claim
> s_thumbprintComparer;
24
private static IEqualityComparer<
Claim
> s_upnComparer;
26
private static IEqualityComparer<
Claim
> s_x500DistinguishedNameComparer;
34
public static IEqualityComparer<
Claim
> GetComparer(string claimType)
55
public static IEqualityComparer<
Claim
> Default
67
public static IEqualityComparer<
Claim
> Dns
79
public static IEqualityComparer<
Claim
> Hash
91
public static IEqualityComparer<
Claim
> Rsa
103
public static IEqualityComparer<
Claim
> Thumbprint
116
public static IEqualityComparer<
Claim
> Upn
129
public static IEqualityComparer<
Claim
> X500DistinguishedName
142
public bool Equals(
Claim
claim1,
Claim
claim2)
156
public int GetHashCode(
Claim
claim)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\ClaimSet.cs (14)
15
public abstract class ClaimSet : IEnumerable<
Claim
>
27
List<
Claim
> claims = new List<
Claim
>(2);
28
claims.Add(
Claim
.System);
76
public virtual bool ContainsClaim(
Claim
claim, IEqualityComparer<
Claim
> comparer)
83
IEnumerable<
Claim
> claims = FindClaims(null, null);
86
foreach (
Claim
matchingClaim in claims)
95
public virtual bool ContainsClaim(
Claim
claim)
100
IEnumerable<
Claim
> claims = FindClaims(claim.ClaimType, claim.Right);
103
foreach (
Claim
matchingClaim in claims)
112
public abstract
Claim
this[int index] { get; }
116
public abstract IEnumerable<
Claim
> FindClaims(string claimType, string right);
117
public abstract IEnumerator<
Claim
> GetEnumerator();
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\DefaultClaimSet.cs (11)
17
private IList<
Claim
> _claims;
19
public DefaultClaimSet(params
Claim
[] claims)
24
public DefaultClaimSet(IList<
Claim
> claims)
29
public DefaultClaimSet(ClaimSet issuer, params
Claim
[] claims)
34
public DefaultClaimSet(ClaimSet issuer, IList<
Claim
> claims)
39
public override
Claim
this[int index]
54
public override bool ContainsClaim(
Claim
claim)
69
public override IEnumerable<
Claim
> FindClaims(string claimType, string right)
76
Claim
claim = _claims[i];
86
public override IEnumerator<
Claim
> GetEnumerator()
91
protected void Initialize(ClaimSet issuer, IList<
Claim
> claims)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\WindowsClaimSet.NetNative.cs (3)
23
public override
Claim
this[int index]
60
public override IEnumerable<
Claim
> FindClaims(string claimType, string right)
65
public override IEnumerator<
Claim
> GetEnumerator()
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (18)
21
private IList<
Claim
> _claims;
49
public override
Claim
this[int index]
161
private IList<
Claim
> InitializeClaimsCore()
163
List<
Claim
> claims = new List<
Claim
>();
171
claims.Add(
Claim
.CreateX500DistinguishedNameClaim(_certificate.SubjectName));
179
claims.Add(
Claim
.CreateDnsClaim(dnsEntries[i]));
188
claims.Add(
Claim
.CreateDnsClaim(value));
194
claims.Add(
Claim
.CreateNameClaim(value));
206
claims.Add(
Claim
.CreateUriClaim(new Uri(value)));
237
public override IEnumerable<
Claim
> FindClaims(string claimType, string right)
265
yield return
Claim
.CreateDnsClaim(dnsEntries[i]);
274
yield return
Claim
.CreateDnsClaim(value);
288
Claim
claim = _claims[i];
336
public override IEnumerator<
Claim
> GetEnumerator()
366
List<
Claim
> claims = new List<
Claim
>(2);
368
claims.Add(
Claim
.CreateX500DistinguishedNameClaim(x500DistinguishedName));
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (1)
188
Claim
claim = claimSet[i];
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\SecurityTraceRecordHelper.cs (1)
27
internal static void TraceIdentityVerificationSuccess(EventTraceActivity eventTraceActivity, EndpointIdentity identity,
Claim
claim, Type identityVerifier)
FrameworkFork\System.ServiceModel\System\ServiceModel\DnsEndpointIdentity.cs (2)
20
base.Initialize(
Claim
.CreateDnsClaim(dnsName));
23
public DnsEndpointIdentity(
Claim
identity)
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointIdentity.cs (9)
13
private
Claim
_identityClaim;
14
private IEqualityComparer<
Claim
> _claimComparer;
20
protected void Initialize(
Claim
identityClaim)
28
protected void Initialize(
Claim
identityClaim, IEqualityComparer<
Claim
> claimComparer)
37
public
Claim
IdentityClaim
49
public static EndpointIdentity CreateIdentity(
Claim
identity)
96
internal bool Matches(
Claim
claim)
101
private IEqualityComparer<
Claim
> GetClaimComparer()
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\IdentityVerifier.cs (5)
101
foreach (
Claim
claim in claimSet.FindClaims(ClaimTypes.Dns, Rights.PossessProperty))
192
internal
Claim
CheckDnsEquivalence(ClaimSet claimSet, string expectedSpn)
195
IEnumerable<
Claim
> claims = claimSet.FindClaims(ClaimTypes.Spn, Rights.PossessProperty);
196
foreach (
Claim
claim in claims)
236
Claim
claim = CheckDnsEquivalence(claimSet, expectedSpn);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (8)
477
internal static
Claim
GetPrimaryIdentityClaim(ReadOnlyCollection<IAuthorizationPolicy> authorizationPolicies)
482
internal static
Claim
GetPrimaryIdentityClaim(AuthorizationContext authContext)
489
foreach (
Claim
claim in claimSet.FindClaims(null, Rights.Identity))
508
Claim
identityClaim;
509
Claim
primaryPrincipal;
522
primaryPrincipal =
Claim
.CreateSpnClaim(principalName);
525
List<
Claim
> claims = new List<
Claim
>(2);
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceSecurityContext.cs (2)
20
private
Claim
_identityClaim;
73
internal
Claim
IdentityClaim
FrameworkFork\System.ServiceModel\System\ServiceModel\SpnEndpointIdentity.cs (2)
44
base.Initialize(
Claim
.CreateSpnClaim(spnName));
47
public SpnEndpointIdentity(
Claim
identity)
FrameworkFork\System.ServiceModel\System\ServiceModel\UpnEndpointIdentity.cs (1)
30
base.Initialize(
Claim
.CreateUpnClaim(upnName));