| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RolePrincipal Class.NET Framework version 2.0 Represents security information for the current HTTP request, including role membership. This class cannot be inherited.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Visibility | Name | Value Type | Accessibility |
|---|---|---|---|
| public | CachedListChanged | Boolean | [ Get ] |
| public | CookiePath | String | [ Get ] |
| public | Expired | Boolean | [ Get ] |
| public | ExpireDate | DateTime | [ Get ] |
| public | Identity | IIdentity | [ Get ] |
| public | IsRoleListCached | Boolean | [ Get ] |
| public | IssueDate | DateTime | [ Get ] |
| public | ProviderName | String | [ Get ] |
| public | Version | Int32 | [ Get ] |
The RolePrincipal object implements the IPrincipal interface and represents the current security context for the HTTP request.
When role management is enabled ( see Roles ), the RoleManagerModule assigns a RolePrincipal object to the User property of the current HttpContext.
The RolePrincipal class exposes the security identity for the current HTTP request and additionally performs checks for role membership. If CacheRolesInCookie is true, then the RolePrincipal object manages the cached list of roles and looks up role membership for the current user in the cached list first, then the role Provider. If CacheRolesInCookie is false, the RolePrincipal object always looks up role membership using the role provider.
The RolePrincipal object encrypts and decrypts role information cached in the cookie identified by the CookieName based on the CookieProtectionValue.
RoleManagerModule Class RoleProvider Class RoleProviderCollection Class Roles Class
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme