2 instantiations of RolePrincipal
System.Web (2)
Security\RoleManagerModule.cs (2)
148
return new
RolePrincipal
(identity);
151
return new
RolePrincipal
(identity, encryptedTicket);
32 references to RolePrincipal
System.Web (32)
Security\RoleClaimProvider.cs (2)
25
RolePrincipal
_rolePrincipal;
28
public RoleClaimProvider(
RolePrincipal
rolePrincipal, ClaimsIdentity subject)
Security\RoleManagerModule.cs (5)
139
if (!(context.User is
RolePrincipal
))
146
private
RolePrincipal
CreateRolePrincipalWithAssert(IIdentity identity, string encryptedTicket = null) {
165
if (context.User == null || !(context.User is
RolePrincipal
) || !context.User.Identity.IsAuthenticated)
173
RolePrincipal
rp = (
RolePrincipal
) context.User;
Security\RolePrincipal.cs (2)
111
RolePrincipal
rp = null;
115
rp = (new BinaryFormatter()).Deserialize(ms) as
RolePrincipal
;
Security\Roles.cs (23)
108
if (user != null && user is
RolePrincipal
&& ((
RolePrincipal
)user).ProviderName == Provider.Name && StringUtil.EqualsIgnoreCase(username, user.Identity.Name))
145
if (user != null && user is
RolePrincipal
&& ((
RolePrincipal
)user).ProviderName == Provider.Name && StringUtil.EqualsIgnoreCase(username, user.Identity.Name)) {
146
roles = ((
RolePrincipal
)user).GetRoles();
197
RolePrincipal
user = GetCurrentUser() as
RolePrincipal
;
227
RolePrincipal
user = GetCurrentUser() as
RolePrincipal
;
250
RolePrincipal
user = GetCurrentUser() as
RolePrincipal
;
273
RolePrincipal
user = GetCurrentUser() as
RolePrincipal
;
306
RolePrincipal
user = GetCurrentUser() as
RolePrincipal
;
326
RolePrincipal
user = GetCurrentUser() as
RolePrincipal
;
349
RolePrincipal
user = GetCurrentUser() as
RolePrincipal
;
372
RolePrincipal
user = GetCurrentUser() as
RolePrincipal
;
405
RolePrincipal
user = GetCurrentUser() as
RolePrincipal
;