23 references to 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());