3 types derived from GenericIdentity
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
488internal class X509Identity : GenericIdentity, IDisposable
System.Net.HttpListener (1)
System\Net\HttpListenerBasicIdentity.cs (1)
8public class HttpListenerBasicIdentity : GenericIdentity
System.ServiceModel.Primitives (1)
System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
521internal class X509Identity : GenericIdentity, IDisposable
46 instantiations of GenericIdentity
dotnet-svcutil-lib (3)
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (2)
66return new GenericIdentity(name, authenticationType); 71return new GenericIdentity(name);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (1)
273return new GenericIdentity(name);
dotnet-user-jwts (1)
Helpers\JwtIssuer.cs (1)
27var identity = new GenericIdentity(options.Name);
Microsoft.AspNetCore.Authentication.Negotiate.Test (2)
EventTests.cs (1)
526return new GenericIdentity("name", _protocol);
NegotiateHandlerTests.cs (1)
557return new GenericIdentity("name", _protocol);
Microsoft.AspNetCore.Authentication.Test (25)
CookieTests.cs (25)
164var user = new ClaimsIdentity(new GenericIdentity("Alice", "Cookies")); 174new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))), 318var user = new ClaimsIdentity(new GenericIdentity("Alice", "Cookies")); 534new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))), 575new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))))); 606new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))))); 634new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))))); 671new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))))); 709ctx.ReplacePrincipal(new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice2", "Cookies2")))); 716new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))))); 740ctx.ReplacePrincipal(new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice2", "Cookies2")))); 749new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))))); 792new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))))); 848new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))))); 907new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))))); 953new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))))); 1005new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))))); 1217new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies")))); 1565new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", CookieAuthenticationDefaults.AuthenticationScheme))), 1589new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", CookieAuthenticationDefaults.AuthenticationScheme)))); 1611new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", CookieAuthenticationDefaults.AuthenticationScheme)))); 1634new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", CookieAuthenticationDefaults.AuthenticationScheme)))); 1656new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", CookieAuthenticationDefaults.AuthenticationScheme))), 1703new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))), 1771new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))));
Microsoft.AspNetCore.CookiePolicy.Test (2)
CookiePolicyTests.cs (2)
376new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("TestUser", "Cookies")))); 427new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity(new string('c', 1024 * 5), "Cookies"))));
Microsoft.AspNetCore.Shared.Tests (5)
SecurityHelperTests.cs (5)
16var user = SecurityHelper.MergeUserPrincipal(new ClaimsPrincipal(), new GenericPrincipal(new GenericIdentity("Test1", "Alpha"), new string[0])); 29ClaimsPrincipal user = new GenericPrincipal(new GenericIdentity("Test1", "Alpha"), null); 34user = SecurityHelper.MergeUserPrincipal(user, new GenericPrincipal(new GenericIdentity("Test2", "Beta"), new string[0])); 39user = SecurityHelper.MergeUserPrincipal(user, new GenericPrincipal(new GenericIdentity("Test3", "Gamma"), new string[0])); 81user = SecurityHelper.MergeUserPrincipal(user, new GenericPrincipal(new GenericIdentity("Test3", "Gamma"), new string[0]));
System.Net.Security (2)
System\Net\NegotiateAuthenticationPal.Unix.cs (1)
152result = new GenericIdentity(name ?? string.Empty, protocol);
System\Net\Security\NegotiateAuthentication.cs (1)
178return new GenericIdentity(TargetName ?? string.Empty, Package);
System.Security.Claims (2)
System\Security\Claims\GenericIdentity.cs (1)
47return new GenericIdentity(this);
System\Security\Claims\GenericPrincipal.cs (1)
86private static GenericPrincipal GetDefaultInstance() => new GenericPrincipal(new GenericIdentity(string.Empty), new string[] { string.Empty });
System.ServiceModel.Primitives (4)
System\IdentityModel\SecurityUtils.cs (3)
36s_anonymousIdentity = new GenericIdentity(string.Empty); 62return new GenericIdentity(name, authenticationType); 67return new GenericIdentity(name);
System\ServiceModel\Security\SecurityUtils.cs (1)
313return new GenericIdentity(name);
7 references to GenericIdentity
dotnet-user-jwts (1)
Helpers\JwtIssuer.cs (1)
27var identity = new GenericIdentity(options.Name);
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
1044[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Principal.GenericIdentity))]
netstandard (1)
netstandard.cs (1)
1992[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Principal.GenericIdentity))]
System.Security.Claims (2)
System\Security\Claims\GenericIdentity.cs (2)
35protected GenericIdentity(GenericIdentity identity) 43/// Returns a new instance of <see cref="GenericIdentity"/> with values copied from this object.
System.ServiceModel.NetFramingBase (2)
System\ServiceModel\Channels\WindowsStreamSecurityUpgradeProvider.cs (2)
148GenericIdentity remoteIdentity = (GenericIdentity)negotiateStream.RemoteIdentity;