CAS: authorize applications (managed assemblies)
RBS: authorize roles
CAS is implmented by using the following components:
- Evidence: identify an assembly
- Permissions: describe which resources an assembly (decided by Evidence) can access
- Permission Sets: collect multiple permissions
- Code Groups: assign permissions (permission set) to an assembly based on evidence
An assembly receives the most restrictive set of permissions assigned by each of the policy levels within CAS control. Moreover, the final effective permissions of an assembly are the intersection of permissions granted by CAS and by OS.
Two ways to configure any aspect of CAS:
- .NET Framework Configuration tool: It's a graphical tool. Go to "Control Panel" > "Administrative Tools" > "Microsoft .NET Framework 2.0 Configuration"
- Caspol (The Code Access Security Policy Tool): It's a command-line tool. For more information about this tool, please refer to this MSDN page: http://msdn.microsoft.com/en-us/library/cb6t8dtz(VS.80).aspx
No comments:
Post a Comment