Policy Levels

Now we have code groups and code group hierarchies made up of membership conditions and permission sets. These aren't quite enough to understand security policy, though. Policy levels complete the picture.

This section will cover the following points about policy levels:

  • The contents of a policy level

  • The four different policy levels

  • How to work with policy levels

Policy Level Contents

First, policy levels are represented by the System.Security.Policy.PolicyLevel class. This class has no public constructor because policy levels cannot be constructed arbitrarily. Rather, the system creates policy levels that can be enumerated by calling the method System.Security.SecurityManager.PolicyHierarchy.

Policy levels are constructed by the ...

Get .NET Framework Security now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.