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

FileCodeGroup

Synopsis

public sealed class FileCodeGroup : CodeGroup {
// Public Constructors
   public FileCodeGroup(IMembershipCondition membershipCondition, 
     System.Security.Permissions.FileIOPermissionAccess access);
// Public Instance Properties
   public override string AttributeString{get; }  
// overrides CodeGroup
   public override string MergeLogic{get; }       
// overrides CodeGroup
   public override string PermissionSetName{get; }
// overrides CodeGroup
                  // Public Instance Methods
   public override CodeGroup Copy(  );     
// overrides CodeGroup
   public override bool Equals(object o);        
// overrides CodeGroup
   public override int GetHashCode(  );    
// overrides CodeGroup
   public override PolicyStatement Resolve(Evidence evidence);
 // overrides CodeGroup
   public override CodeGroup ResolveMatchingCodeGroups(Evidence evidence);
 // overrides CodeGroup
                  // Protected Instance Methods
   protected override void CreateXml(System.Security.SecurityElement element, PolicyLevel level);
 // overrides CodeGroup
   protected override void ParseXml(System.Security.SecurityElement e, PolicyLevel level);
 // overrides CodeGroup
}

This class is a subclass of the CodeGroup class. FileCodeGroup does not support attributes and does not contain a statically defined permission set, and so there is no need to assign it a PolicyStatement. With each call to Resolve( ), the FileCodeGroup object determines if the provided Evidence collection contains Url evidence that represents a URL with the “file://” protocol. If so, the FileCodeGroup ...

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