Skip to Content
Programming .NET Security
book

Programming .NET Security

by Adam Freeman, Allen Jones
June 2003
Intermediate to advanced
714 pages
22h 8m
English
O'Reilly Media, Inc.
Content preview from Programming .NET Security

Chapter 28. The System.Security.Policy Namespace

The System.Security.Policy namespace contains classes that represent evidence and the key elements of security policy, including membership conditions, code groups, and policy levels. Security policy is the set of configurable rules that provide a mapping between evidence and permissions. Specifically, the runtime uses security policy to determine which code-access permissions to grant to an assembly or application domain based on the set of evidence that the assembly or application domain presents—a process known as policy resolution.

.NET divides security policy into four policy levels: enterprise, machine, user, and application domain. Each policy level consists of a set of code groups organized into a tree structure. There are different types of code groups, but most contain a membership condition (based on the values of evidence objects) and a permission set that the code group grants to assemblies and application domains that qualify for membership. Some code groups contain a set of child code groups, which member assemblies and application domains are also compared to for membership, thus creating a tree structure.

During policy resolution, the runtime traverses the tree of code groups in each policy level and compares the evidence presented by the assembly or application domain with the membership condition of each code group. If the evidence meets the code group’s membership condition, then the runtime grants the assembly or ...

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.
Start your free trial

You might also like

.NET Framework Security

.NET Framework Security

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

.NET Security and Cryptography

Peter Thorsteinson, G. Gnana Arun Ganesh
ASP.NET Core Security

ASP.NET Core Security

Christian Wenz

Publisher Resources

ISBN: 0596004427Supplemental ContentErrata Page