O'Reilly logo

.NET Framework Security by Kevin T. Price, Rudi Martin, Matthew Lyons, Sebastian Lange, Brian A. LaMacchia

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required