Code Groups

Now that we have covered membership conditions, it is logical to consider how they are used in the bigger picture. This is where code groups come into play. Code groups roughly define bindings between membership conditions and permission sets. If code matches the membership condition in a code group, it is granted a permission set.

From a high-level point of view, code groups are more than a binding between membership conditions and permission sets. They represent the intention of how much trust to grant code. For example, you may want to allow code loaded from your company's Web site to have full use of the network, but not code loaded from any other Web site. Different code groups can be constructed to express these intentions. ...

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.