using System; using System.Collections; using System.Security.Permissions; using System.Security.Policy; namespace System.Security { /// Represents a collection that can contain many different types of permissions. // Token: 0x020005C7 RID: 1479 [Serializable] public class PermissionSet { // Token: 0x060035E5 RID: 13797 RVA: 0x000B87BC File Offset: 0x000B69BC public PermissionSet() { } // Token: 0x060035E6 RID: 13798 RVA: 0x000B87C4 File Offset: 0x000B69C4 internal PermissionSet(string xml) { } /// Initializes a new instance of the class with the specified . /// One of the values. /// The parameter is not a valid . // Token: 0x060035E7 RID: 13799 RVA: 0x000B87CC File Offset: 0x000B69CC public PermissionSet(PermissionState state) { } /// Initializes a new instance of the class with initial values taken from the parameter. /// The from which to take the value of the new , or null to create an empty . // Token: 0x060035E8 RID: 13800 RVA: 0x000B87D4 File Offset: 0x000B69D4 public PermissionSet(PermissionSet permSet) { } /// Adds a specified permission to the . /// The union of the permission added and any permission of the same type that already exists in the . /// The permission to add. /// /// /// // Token: 0x060035E9 RID: 13801 RVA: 0x000B87DC File Offset: 0x000B69DC public IPermission AddPermission(IPermission perm) { return perm; } /// Declares that the calling code can access the resource protected by a permission demand through the code that calls this method, even if callers higher in the stack have not been granted permission to access the resource. Using can create security vulnerabilities. /// The instance asserted has not been granted to the asserting code.-or- There is already an active for the current frame. // Token: 0x060035EA RID: 13802 RVA: 0x000B87E0 File Offset: 0x000B69E0 public virtual void Assert() { } /// Creates a copy of the . /// A copy of the . // Token: 0x060035EB RID: 13803 RVA: 0x000B87E4 File Offset: 0x000B69E4 public virtual PermissionSet Copy() { return new PermissionSet(this); } /// Forces a at run time if all callers higher in the call stack have not been granted the permissions specified by the current instance. /// A caller in the call chain does not have the permission demanded. /// /// /// /// // Token: 0x060035EC RID: 13804 RVA: 0x000B87EC File Offset: 0x000B69EC public virtual void Demand() { } /// Causes any that passes through the calling code for any that is not a subset of the current to fail. // Token: 0x060035ED RID: 13805 RVA: 0x000B87F0 File Offset: 0x000B69F0 public virtual void PermitOnly() { } /// Gets a permission object of the specified type, if it exists in the set. /// A copy of the permission object of the type specified by the parameter contained in the , or null if none exists. /// The of the desired permission object. /// /// /// // Token: 0x060035EE RID: 13806 RVA: 0x000B87F4 File Offset: 0x000B69F4 public virtual IPermission GetPermission(Type permClass) { return null; } /// Creates and returns a permission set that is the intersection of the current and the specified . /// A new that represents the intersection of the current and the specified target. This object is null if the intersection is empty. /// A to intersect with the current . /// /// /// // Token: 0x060035EF RID: 13807 RVA: 0x000B87F8 File Offset: 0x000B69F8 public virtual PermissionSet Intersect(PermissionSet other) { return other; } /// Causes any that passes through the calling code for a permission that has an intersection with a permission of a type contained in the current to fail. /// A previous call to has already restricted the permissions for the current stack frame. // Token: 0x060035F0 RID: 13808 RVA: 0x000B87FC File Offset: 0x000B69FC public virtual void Deny() { } /// Reconstructs a security object with a specified state from an XML encoding. /// The XML encoding to use to reconstruct the security object. /// The parameter is null. /// The parameter is not a valid permission element.-or- The parameter's version number is not supported. /// /// /// // Token: 0x060035F1 RID: 13809 RVA: 0x000B8800 File Offset: 0x000B6A00 public virtual void FromXml(SecurityElement et) { } /// Copies the permission objects of the set to the indicated location in an . /// The target array to which to copy. /// The starting position in the array to begin copying (zero based). /// The parameter is null. /// The parameter has more than one dimension. /// The parameter is out of the range of the parameter. // Token: 0x060035F2 RID: 13810 RVA: 0x000B8804 File Offset: 0x000B6A04 public virtual void CopyTo(Array array, int index) { } /// Creates an XML encoding of the security object and its current state. /// An XML encoding of the security object, including any state information. /// /// /// // Token: 0x060035F3 RID: 13811 RVA: 0x000B8808 File Offset: 0x000B6A08 public virtual SecurityElement ToXml() { return null; } /// Determines whether the current is a subset of the specified . /// true if the current is a subset of the parameter; otherwise, false. /// A to test for the subset relationship. This must be either a or a . /// /// /// // Token: 0x060035F4 RID: 13812 RVA: 0x000B880C File Offset: 0x000B6A0C public virtual bool IsSubsetOf(PermissionSet target) { return true; } // Token: 0x060035F5 RID: 13813 RVA: 0x000B8810 File Offset: 0x000B6A10 internal void SetReadOnly(bool value) { } /// Determines whether the is Unrestricted. /// true if the is Unrestricted; otherwise, false. // Token: 0x060035F6 RID: 13814 RVA: 0x000B8814 File Offset: 0x000B6A14 public bool IsUnrestricted() { return true; } /// Creates a that is the union of the current and the specified . /// A new that represents the union of the current and the specified . /// A to form the union with the current . /// /// /// // Token: 0x060035F7 RID: 13815 RVA: 0x000B8818 File Offset: 0x000B6A18 public PermissionSet Union(PermissionSet other) { return new PermissionSet(); } /// Returns an enumerator for the permissions of the set. /// An enumerator object for the permissions of the set. // Token: 0x060035F8 RID: 13816 RVA: 0x000B8820 File Offset: 0x000B6A20 public virtual IEnumerator GetEnumerator() { yield break; } // Token: 0x17000A8D RID: 2701 // (get) Token: 0x060035F9 RID: 13817 RVA: 0x000B8834 File Offset: 0x000B6A34 // (set) Token: 0x060035FA RID: 13818 RVA: 0x000B883C File Offset: 0x000B6A3C internal PolicyLevel Resolver { get; set; } // Token: 0x17000A8E RID: 2702 // (get) Token: 0x060035FB RID: 13819 RVA: 0x000B8848 File Offset: 0x000B6A48 // (set) Token: 0x060035FC RID: 13820 RVA: 0x000B8850 File Offset: 0x000B6A50 internal bool DeclarativeSecurity { get; set; } /// Gets a value indicating whether the is empty. /// true if the is empty; otherwise, false. /// /// /// // Token: 0x060035FD RID: 13821 RVA: 0x000B885C File Offset: 0x000B6A5C public virtual bool IsEmpty() { return true; } // Token: 0x060035FE RID: 13822 RVA: 0x000B8860 File Offset: 0x000B6A60 internal static PermissionSet CreateFromBinaryFormat(byte[] data) { return new PermissionSet(); } } }