Permissions
User-based security and CAS are the two major branches of the .NET security story, and they both require an understanding of a common concept known as permissions. For user-based security, the PrincipalPermission class is used to check against the identity of the current user of the calling thread. For CAS, the many CodeAccessPermission-derived classes are used to check against the individual permissions that have been granted or denied to all threads executing the current method. We bring up the concept of permissions in this chapter because this is where we first use the concept. In the next chapter on CAS, we make heavier use of permissions; however, this discussion of the permission concept will not be repeated there, so please ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access