5 implementations of IPrincipal
mscorlib (1)
system\security\claims\ClaimsPrincipal.cs (1)
37
public class ClaimsPrincipal :
IPrincipal
System.ServiceModel (2)
System\ServiceModel\Dispatcher\SecurityImpersonationBehavior.cs (1)
451
class WindowsSidPrincipal :
IPrincipal
System\ServiceModel\Security\RoleProviderPrincipal.cs (1)
13
sealed class RoleProviderPrincipal :
IPrincipal
System.Web (1)
Hosting\IIS7UserPrincipal.cs (1)
13
internal sealed class IIS7UserPrincipal :
IPrincipal
{
System.Web.Extensions (1)
ClientServices\ClientRolePrincipal.cs (1)
12
public class ClientRolePrincipal :
IPrincipal
151 references to IPrincipal
mscorlib (24)
system\appdomain.cs (4)
320
private
IPrincipal
_DefaultPrincipal;
2669
public void SetThreadPrincipal(
IPrincipal
principal)
3300
internal
IPrincipal
GetThreadPrincipal()
3302
IPrincipal
principal = null;
system\iappdomain.cs (1)
256
void SetThreadPrincipal(
IPrincipal
principal);
system\runtime\remoting\callcontext.cs (7)
78
internal static
IPrincipal
Principal
317
public
IPrincipal
Principal { get { return IsNull ? null : m_ctx.Principal; } }
549
internal
IPrincipal
Principal
628
internal
IPrincipal
RemovePrincipalIfNotSerializable()
630
IPrincipal
currentPrincipal = this.Principal;
751
IPrincipal
_principal;
753
internal
IPrincipal
Principal
system\runtime\remoting\crossappdomainchannel.cs (1)
489
IPrincipal
currentPrincipal = null;
system\runtime\remoting\realproxy.cs (1)
964
IPrincipal
principal = oldCtx.Principal;
system\runtime\remoting\stackbuildersink.cs (1)
487
IPrincipal
currentPrincipal = threadCallContext.Principal;
system\security\claims\ClaimsPrincipal.cs (1)
216
public ClaimsPrincipal(
IPrincipal
principal)
system\security\permissions\principalpermission.cs (1)
463
IPrincipal
principal = null;
system\threading\thread.cs (7)
353
IPrincipal
principal = (
IPrincipal
)CallContext.Principal;
440
private extern void StartInternal(
IPrincipal
principal, ref StackCrawlMark stackMark);
1393
public static
IPrincipal
CurrentPrincipal
1400
IPrincipal
principal = (
IPrincipal
)
1422
private void SetPrincipalInternal(
IPrincipal
principal)
System (12)
net\System\Net\HttpListener.cs (1)
1533
IPrincipal
principal = null;
net\System\Net\HttpListenerContext.cs (3)
25
private
IPrincipal
m_User;
44
internal void SetIdentity(
IPrincipal
principal, string mutualAuthentication)
71
public /* override */
IPrincipal
User {
net\System\Net\HttpListenerRequest.cs (1)
456
IPrincipal
user = HttpListenerContext.User;
net\System\Net\WebSockets\HttpListenerWebSocketContext.cs (6)
20
private
IPrincipal
m_User;
36
IPrincipal
user,
104
public override
IPrincipal
User
129
private static
IPrincipal
CopyPrincipal(
IPrincipal
user)
133
IPrincipal
retVal = null;
net\System\Net\WebSockets\WebSocketContext.cs (1)
23
public abstract
IPrincipal
User { get; }
System.Runtime.Remoting (3)
channels\ipc\ipcserverchannel.cs (1)
396
IPrincipal
oldPrincipal = null;
channels\tcp\tcpserverchannel.cs (1)
562
IPrincipal
oldPrincipal = null;
services\remotingservice.cs (1)
48
public
IPrincipal
User
System.ServiceModel (26)
System\ServiceModel\Channels\HttpChannelListener.cs (1)
320
IPrincipal
principal = listenerContext.User;
System\ServiceModel\Channels\HttpRequestMessageExtensionMethods.cs (3)
22
public static void SetUserPrincipal(this HttpRequestMessage httpRequestMessage,
IPrincipal
user)
32
public static
IPrincipal
GetUserPrincipal(this HttpRequestMessage httpRequestMessage)
42
return user as
IPrincipal
;
System\ServiceModel\Channels\ServiceWebSocketContext.cs (3)
20
IPrincipal
user;
22
public ServiceWebSocketContext(WebSocketContext context,
IPrincipal
user)
79
public override
IPrincipal
User
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
525
IPrincipal
user = requestMessage == null ? null : requestMessage.GetUserPrincipal();
System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (2)
487
IPrincipal
originalPrincipal = null;
692
IPrincipal
originalPrincipal = null;
System\ServiceModel\Dispatcher\SecurityImpersonationBehavior.cs (9)
125
IPrincipal
SetCurrentThreadPrincipal(ServiceSecurityContext securityContext, out bool isThreadPrincipalSet)
127
IPrincipal
result = null;
128
IPrincipal
principal = null;
164
static
IPrincipal
GetCustomPrincipal(ServiceSecurityContext securityContext)
167
if (securityContext.AuthorizationContext.Properties.TryGetValue(SecurityUtils.Principal, out customPrincipal) && customPrincipal is
IPrincipal
)
168
return (
IPrincipal
)customPrincipal;
189
public void StartImpersonation(ref MessageRpc rpc, out IDisposable impersonationContext, out
IPrincipal
originalPrincipal, out bool isThreadPrincipalSet)
306
public void StopImpersonation(ref MessageRpc rpc, IDisposable impersonationContext,
IPrincipal
originalPrincipal, bool isThreadPrincipalSet)
338
IPrincipal
GetWindowsPrincipal(ServiceSecurityContext securityContext)
System\ServiceModel\OperationContext.cs (2)
32
internal
IPrincipal
threadPrincipal;
337
internal
IPrincipal
ThreadPrincipal
System\ServiceModel\Security\ImpersonateOnSerializingReplyMessageProperty.cs (2)
99
public void StartImpersonation(out IDisposable impersonationContext, out
IPrincipal
originalPrincipal, out bool isThreadPrincipalSet)
129
public void StopImpersonation(IDisposable impersonationContext,
IPrincipal
originalPrincipal, bool isThreadPrincipalSet)
System\ServiceModel\Security\ImpersonatingMessage.cs (3)
70
IPrincipal
originalPrincipal = null;
145
IPrincipal
originalPrincipal = null;
202
IPrincipal
originalPrincipal = null;
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\HostedHttpRequestAsyncResult.cs (1)
477
IPrincipal
user = this.Application.User;
System.Web (55)
Abstractions\HttpContextBase.cs (1)
218
public virtual
IPrincipal
User {
Abstractions\HttpContextWrapper.cs (1)
225
public override
IPrincipal
User {
Configuration\AuthorizationRule.cs (2)
438
internal int IsUserAllowed(
IPrincipal
user, String verb) {
519
private bool IsTheUserInAnyRole(StringCollection roles,
IPrincipal
principal) {
Configuration\AuthorizationRuleCollection.cs (1)
99
internal bool IsUserAllowed(
IPrincipal
user, String verb) {
Configuration\AuthorizationSection.cs (1)
89
internal bool IsUserAllowed(
IPrincipal
user, String verb) {
Configuration\WebPartsPersonalizationAuthorization.cs (1)
52
internal bool IsUserAllowed(
IPrincipal
user, String verb) {
Hosting\IIS7WorkerRequest.cs (4)
1917
internal void SetPrincipal(
IPrincipal
user)
2231
private
IPrincipal
GetUserPrincipal()
2239
IPrincipal
user = null;
2263
return (
IPrincipal
)GCUtil.UnrootObject(pManagedPrincipal);
Hosting\IPipelineRuntime.cs (2)
428
IPrincipal
principal = RootedObjects.FromPointer(pRootedObjects).Principal;
451
IPrincipal
principal = RootedObjects.FromPointer(pRootedObjects).Principal;
HttpApplication.cs (2)
460
public
IPrincipal
User {
1235
internal static void SetCurrentPrincipalWithAssert(
IPrincipal
user) {
HttpContext.cs (5)
1237
public
IPrincipal
User {
1246
IPrincipal
IPrincipalContainer.Principal {
1254
internal void SetPrincipalNoDemand(
IPrincipal
principal, bool needToSetNativePrincipal) {
1268
internal void SetPrincipalNoDemand(
IPrincipal
principal) {
1343
IPrincipal
currentPrincipal = _principalContainer.Principal;
IPrincipalContainer.cs (1)
15
IPrincipal
Principal {
Management\EventlogProvider.cs (1)
81
IPrincipal
iprincipal = reqInfo.Principal;
Management\WebEvents.cs (2)
1929
IPrincipal
_iprincipal;
1987
public
IPrincipal
Principal {get {return _iprincipal;}}
Management\wmiprovider.cs (1)
97
IPrincipal
iprincipal = reqInfo.Principal;
RootedObjects.cs (1)
63
public
IPrincipal
Principal {
Routing\PageRouteHandler.cs (2)
62
IPrincipal
user = requestContext.HttpContext.User;
71
private bool CheckUrlAccessWithAssert(string virtualPath, RequestContext requestContext,
IPrincipal
user) {
Security\AuthStoreRoleProvider.cs (1)
656
IPrincipal
user = Thread.CurrentPrincipal;
Security\FormsAuthenticationEventArgs.cs (2)
23
private
IPrincipal
_User;
32
public
IPrincipal
User {
Security\Membership.cs (1)
595
IPrincipal
user = Thread.CurrentPrincipal;
Security\PassportAuthenticationEventArgs.cs (2)
27
private
IPrincipal
_User;
39
public
IPrincipal
User {
Security\Roles.cs (4)
107
IPrincipal
user = GetCurrentUser();
144
IPrincipal
user = GetCurrentUser();
596
IPrincipal
user = GetCurrentUser();
603
private static
IPrincipal
GetCurrentUser()
Security\UrlAuthorizationModule.cs (1)
64
public static bool CheckUrlAccessForPrincipal(String virtualPath,
IPrincipal
user, string verb) {
Security\WindowsAuthenticationEventArgs.cs (2)
23
private
IPrincipal
_User;
37
public
IPrincipal
User {
Security\WindowsTokenRoleProvider.cs (1)
202
IPrincipal
user = Thread.CurrentPrincipal;
ThreadContext.cs (1)
30
private
IPrincipal
_originalThreadPrincipal;
UI\Page.cs (1)
1411
public
IPrincipal
User {
UI\WebControls\LoginUtil.cs (3)
110
internal static
IPrincipal
GetUser(Control c) {
111
IPrincipal
user = null;
132
IPrincipal
user = GetUser(c);
UI\WebControls\LoginView.cs (1)
361
IPrincipal
user = LoginUtil.GetUser(this);
UI\WebControls\RoleGroup.cs (1)
72
public bool ContainsUser(
IPrincipal
user) {
UI\WebControls\RoleGroupCollection.cs (2)
50
public RoleGroup GetMatchingRoleGroup(
IPrincipal
user) {
61
internal int GetMatchingRoleGroupInternal(
IPrincipal
user) {
UI\WebParts\PersonalizationProvider.cs (2)
76
IPrincipal
user = null;
142
IPrincipal
user = null;
WebSockets\AspNetWebSocketContext.cs (1)
179
public override
IPrincipal
User {
WebSockets\AspNetWebSocketContextImpl.cs (1)
245
public override
IPrincipal
User {
System.Web.DynamicData (17)
DynamicData\IMetaTable.cs (4)
17
bool CanDelete(
IPrincipal
principal);
18
bool CanInsert(
IPrincipal
principal);
19
bool CanRead(
IPrincipal
principal);
20
bool CanUpdate(
IPrincipal
principal);
DynamicData\MetaTable.cs (9)
320
public virtual bool CanDelete(
IPrincipal
principal) {
327
public virtual bool CanInsert(
IPrincipal
principal) {
334
public virtual bool CanRead(
IPrincipal
principal) {
341
public virtual bool CanUpdate(
IPrincipal
principal) {
791
internal static bool IsFilterableColumn(IMetaColumn column,
IPrincipal
user) {
1084
bool IMetaTable.CanDelete(
IPrincipal
principal) {
1088
bool IMetaTable.CanInsert(
IPrincipal
principal) {
1092
bool IMetaTable.CanRead(
IPrincipal
principal) {
1096
bool IMetaTable.CanUpdate(
IPrincipal
principal) {
DynamicData\ModelProviders\TableProvider.cs (4)
122
public virtual bool CanDelete(
IPrincipal
principal) {
132
public virtual bool CanInsert(
IPrincipal
principal) {
142
public virtual bool CanRead(
IPrincipal
principal) {
152
public virtual bool CanUpdate(
IPrincipal
principal) {
System.Web.Extensions (12)
ApplicationServices\ApplicationServiceHelper.cs (3)
79
IPrincipal
user = GetCurrentUser(context);
165
internal static
IPrincipal
GetCurrentUser(HttpContext context) {
212
internal static string GetUserName(
IPrincipal
user) {
ApplicationServices\ProfileService.cs (1)
285
IPrincipal
user = ApplicationServiceHelper.GetCurrentUser(context);
ApplicationServices\RoleService.cs (3)
52
private RoleProvider GetRoleProvider(
IPrincipal
user) {
70
IPrincipal
user = ApplicationServiceHelper.GetCurrentUser(HttpContext.Current);
92
IPrincipal
user = ApplicationServiceHelper.GetCurrentUser(HttpContext.Current);
ApplicationServices\SelectingProviderEventArgs.cs (3)
15
private
IPrincipal
_user;
16
public
IPrincipal
User {
26
internal SelectingProviderEventArgs(
IPrincipal
user, string providerName)
ClientServices\Providers\ClientFormsAuthenticationMembershipProvider.cs (1)
198
IPrincipal
p = Thread.CurrentPrincipal;
ClientServices\Providers\ClientRoleProvider.cs (1)
114
IPrincipal
p = Thread.CurrentPrincipal;
System.Web.Services (1)
System\Web\Services\WebService.cs (1)
93
public
IPrincipal
User {