Site

Siteserializable

System.Security.Policy (mscorlib.dll)sealed class
public sealed class Site : IIdentityPermissionFactory, IBuiltInEvidence { // Public Constructors    public Site(string name); // Public Instance Properties    public string Name{get; } // Public Static Methods    public static Site CreateFromUrl(string url); // Public Instance Methods    public object Copy(  );    public IPermission CreateIdentityPermission(Evidence evidence);  // implements IIdentityPermissionFactory    public override bool Equals(object o);         // overrides object    public override int GetHashCode(  );     // overrides object    public override string ToString(  );     // overrides object }

The Site evidence class specifies the fully qualified host name from where an assembly was loaded for example, www.oreilly.com. The site name is passed as a System.String to the Site constructor, and is accessible through the Name property. The static CreateFromUrl( ) method enables easy creation of Site objects from URL strings.

During policy resolution, the SiteMembershipCondition class uses Site evidence to test whether an assembly or application domain qualifies for membership of a CodeGroup.

Because the Site class implements the IIdentityPermissionFactory interface, an assembly or application domain with Site evidence will contain an appropriately configured System.Security.Permissions.SiteIdentityPermission object in its grant set.



Programming. NET Security
Programming .Net Security
ISBN: 0596004427
EAN: 2147483647
Year: 2005
Pages: 346

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net