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