23 instantiations of WindowsPrincipal
ComSvcConfig (1)
Tool.cs (1)
640WindowsPrincipal principal = new WindowsPrincipal(WindowsIdentity.GetCurrent());
mscorlib (1)
system\appdomain.cs (1)
3315principal = new WindowsPrincipal(WindowsIdentity.GetCurrent());
System (4)
compmod\system\codedom\compiler\TempFiles.cs (1)
326new WindowsPrincipal(currentIdentity).IsInRole(WindowsBuiltInRole.Administrator))
net\System\Net\HttpListener.cs (2)
1598principal = new WindowsPrincipal(CreateWindowsIdentity(userContext.DangerousGetHandle(), DigestClient.AuthType, WindowsAccountType.Normal, true)); 1693WindowsPrincipal windowsPrincipal = new WindowsPrincipal(CreateWindowsIdentity(userContext.DangerousGetHandle(), context.ProtocolName, WindowsAccountType.Normal, true));
net\System\Net\WebSockets\HttpListenerWebSocketContext.cs (1)
150retVal = new WindowsPrincipal(HttpListener.CreateWindowsIdentity(windowsIdentity.Token,
System.IdentityModel (3)
System\IdentityModel\Tokens\AuthorizationPolicy.cs (2)
230return new WindowsPrincipal(wci); 236return new WindowsPrincipal(wi);
System\IdentityModel\Tokens\SessionSecurityToken.cs (1)
825principal = new WindowsPrincipal(wi);
System.Management (1)
Instrumentation\WMICapabilities.cs (1)
143WindowsPrincipal principal = new WindowsPrincipal(WindowsIdentity.GetCurrent());
System.Runtime.Remoting (2)
channels\ipc\ipcserverchannel.cs (1)
423Thread.CurrentPrincipal = new WindowsPrincipal(identity);
channels\tcp\tcpserverchannel.cs (1)
570Thread.CurrentPrincipal = new WindowsPrincipal(identity);
System.ServiceModel (2)
System\ServiceModel\Dispatcher\SecurityImpersonationBehavior.cs (2)
79anonymousWindowsPrincipal = new WindowsPrincipal(WindowsIdentity.GetAnonymous()); 342return new WindowsPrincipal(wid);
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\Description\WorkflowInstanceManagementBehavior.cs (1)
258WindowsPrincipal principal = new WindowsPrincipal(operationContext.ServiceSecurityContext.WindowsIdentity);
System.Web (5)
Hosting\IIS7WorkerRequest.cs (1)
2296user = new WindowsPrincipal((WindowsIdentity)identity);
Management\WebEvents.cs (1)
1961_iprincipal = new WindowsPrincipal(new WindowsIdentity(winIdentity.Token, winIdentity.AuthenticationType));
Security\WindowsAuthenticationModule.cs (2)
35internal static readonly WindowsPrincipal AnonymousPrincipal = new WindowsPrincipal(AnonymousIdentity); 100e.Context.SetPrincipalNoDemand(new WindowsPrincipal(e.Identity), false /*needToSetNativePrincipal*/);
Security\WindowsTokenRoleProvider.cs (1)
80WindowsPrincipal wp = new WindowsPrincipal(wi);
System.Web.Extensions (2)
ClientServices\Providers\ClientFormsAuthenticationMembershipProvider.cs (1)
229Thread.CurrentPrincipal = new WindowsPrincipal(WindowsIdentity.GetCurrent());
ClientServices\Providers\ClientWindowsAuthenticationMembershipProvider.cs (1)
40Thread.CurrentPrincipal = new WindowsPrincipal(WindowsIdentity.GetCurrent());
WsatUI (1)
MMCUI\WSATControl.cs (1)
172WindowsPrincipal principal = new WindowsPrincipal(WindowsIdentity.GetCurrent());
20 references to WindowsPrincipal
ComSvcConfig (1)
Tool.cs (1)
640WindowsPrincipal principal = new WindowsPrincipal(WindowsIdentity.GetCurrent());
mscorlib (2)
system\security\permissions\principalpermission.cs (2)
495WindowsPrincipal wp = principal as WindowsPrincipal;
System (6)
net\System\Net\HttpListener.cs (4)
1352WindowsPrincipal principal = disconnectResult == null ? null : disconnectResult.AuthenticatedConnection; 1693WindowsPrincipal windowsPrincipal = new WindowsPrincipal(CreateWindowsIdentity(userContext.DangerousGetHandle(), context.ProtocolName, WindowsAccountType.Normal, true)); 2680private WindowsPrincipal m_AuthenticatedConnection; 2807internal WindowsPrincipal AuthenticatedConnection
net\System\Net\HttpListenerContext.cs (1)
73if (m_User as WindowsPrincipal == null)
net\System\Net\WebSockets\HttpListenerWebSocketContext.cs (1)
136if (user as WindowsPrincipal == null)
System.Management (1)
Instrumentation\WMICapabilities.cs (1)
143WindowsPrincipal principal = new WindowsPrincipal(WindowsIdentity.GetCurrent());
System.ServiceModel (3)
System\ServiceModel\Dispatcher\SecurityImpersonationBehavior.cs (3)
43static WindowsPrincipal anonymousWindowsPrincipal; 74static WindowsPrincipal AnonymousWindowsPrincipal 134principal = ( claimsPrincipal is WindowsPrincipal ) ? claimsPrincipal : GetWindowsPrincipal( securityContext );
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\Description\WorkflowInstanceManagementBehavior.cs (1)
258WindowsPrincipal principal = new WindowsPrincipal(operationContext.ServiceSecurityContext.WindowsIdentity);
System.Web (5)
Management\WebEvents.cs (1)
1956if (_iprincipal is WindowsPrincipal
Security\WindowsAuthenticationModule.cs (3)
35internal static readonly WindowsPrincipal AnonymousPrincipal = new WindowsPrincipal(AnonymousIdentity); 129WindowsPrincipal user = context.User as WindowsPrincipal;
Security\WindowsTokenRoleProvider.cs (1)
80WindowsPrincipal wp = new WindowsPrincipal(wi);
WsatUI (1)
MMCUI\WSATControl.cs (1)
172WindowsPrincipal principal = new WindowsPrincipal(WindowsIdentity.GetCurrent());