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

Name

PolicyStatement

Synopsis

public sealed class PolicyStatement : System.Security.ISecurityEncodable, 
    System.Security.ISecurityPolicyEncodable {
// Public Constructors
   public PolicyStatement(System.Security.PermissionSet permSet);
   public PolicyStatement(System.Security.PermissionSet permSet, PolicyStatementAttribute attributes);
// Public Instance Properties
   public PolicyStatementAttribute Attributes{set; get; }
   public string AttributeString{get; }
   public PermissionSet PermissionSet{set; get; }
// Public Instance Methods
   public PolicyStatement Copy(  );
   public void FromXml(System.Security.SecurityElement et);   
// implements System.Security.ISecurityEncodable
   public void FromXml(System.Security.SecurityElement et,  PolicyLevel level);
 // implements System.Security.ISecurityPolicyEncodable
   public SecurityElement ToXml(  );       
// implements System.Security.ISecurityEncodable
   public SecurityElement ToXml(PolicyLevel level);       
// implements System.Security.ISecurityPolicyEncodable
}

The PolicyStatement class defines the set of permissions that a code group grants to its members, as well as the attributes of the code group. Of the four concrete CodeGroup implementations, only the UnionCodeGroup and FirstMatchCodeGroup classes require a PolicyStatement object. The FileCodeGroup and NetCodeGroup classes generate their permission sets dynamically, and do not support attributes. A PolicyStatement is assigned to a UnionCodeGroup or FirstMatchCodeGroup object as an argument of the code group’s constructor, ...

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