using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Security.Permissions; using Cpp2IlInjected; namespace System.Security { /// Defines the underlying structure of all code access permissions. // Token: 0x020003A2 RID: 930 [Token(Token = "0x20003A2")] [MonoTODO] [ComVisible(true)] [MonoTODO("CAS support is experimental (and unsupported).")] [Serializable] public abstract class CodeAccessPermission : IPermission, ISecurityEncodable { /// Initializes a new instance of the class. // Token: 0x06002045 RID: 8261 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002045")] [Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")] protected CodeAccessPermission() { } /// Forces a at run time if all callers higher in the call stack have not been granted the permission specified by the current instance. /// A caller higher in the call stack does not have the permission specified by the current instance. /// -or- /// A caller higher in the call stack has called on the current permission object. // Token: 0x06002046 RID: 8262 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002046")] [Address(RVA = "0x298B6A0", Offset = "0x298A4A0", VA = "0x18298B6A0", Slot = "5")] [Conditional("MONO_FEATURE_CAS")] public void Demand() { } /// Determines whether the specified object is equal to the current . /// The object to compare with the current . /// /// if the specified object is equal to the current ; otherwise, . // Token: 0x06002047 RID: 8263 RVA: 0x000140E8 File Offset: 0x000122E8 [Token(Token = "0x6002047")] [Address(RVA = "0x298B860", Offset = "0x298A660", VA = "0x18298B860", Slot = "0")] [ComVisible(false)] public override bool Equals(object obj) { return default(bool); } /// Gets a hash code for the object that is suitable for use in hashing algorithms and data structures such as a hash table. /// A hash code for the current object. // Token: 0x06002048 RID: 8264 RVA: 0x00014100 File Offset: 0x00012300 [Token(Token = "0x6002048")] [Address(RVA = "0x19424F0", Offset = "0x19412F0", VA = "0x1819424F0", Slot = "2")] [ComVisible(false)] public override int GetHashCode() { return 0; } /// When implemented by a derived class, determines whether the current permission is a subset of the specified permission. /// A permission that is to be tested for the subset relationship. This permission must be of the same type as the current permission. /// /// if the current permission is a subset of the specified permission; otherwise, . /// The parameter is not and is not of the same type as the current permission. // Token: 0x06002049 RID: 8265 [Token(Token = "0x6002049")] [Address(Slot = "6")] public abstract bool IsSubsetOf(IPermission target); /// Creates and returns a string representation of the current permission object. /// A string representation of the current permission object. // Token: 0x0600204A RID: 8266 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x600204A")] [Address(RVA = "0x298BA30", Offset = "0x298A830", VA = "0x18298BA30", Slot = "3")] public override string ToString() { return null; } /// When overridden in a derived class, creates an XML encoding of the security object and its current state. /// An XML encoding of the security object, including any state information. // Token: 0x0600204B RID: 8267 [Token(Token = "0x600204B")] [Address(Slot = "7")] public abstract SecurityElement ToXml(); // Token: 0x0600204C RID: 8268 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x600204C")] [Address(RVA = "0x298B720", Offset = "0x298A520", VA = "0x18298B720")] internal SecurityElement Element(int version) { return null; } // Token: 0x0600204D RID: 8269 RVA: 0x00014118 File Offset: 0x00012318 [Token(Token = "0x600204D")] [Address(RVA = "0x298B5F0", Offset = "0x298A3F0", VA = "0x18298B5F0")] internal static PermissionState CheckPermissionState(PermissionState state, bool allowUnrestricted) { return PermissionState.None; } // Token: 0x0600204E RID: 8270 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600204E")] [Address(RVA = "0x298B990", Offset = "0x298A790", VA = "0x18298B990")] internal static void ThrowInvalidPermission(IPermission target, Type expected) { } } }