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