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: 0x020003BE RID: 958
[Token(Token = "0x20003BE")]
[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: 0x06002251 RID: 8785 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002251")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
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: 0x06002252 RID: 8786 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002252")]
[Address(RVA = "0xBFF3A0", Offset = "0xBFE3A0", VA = "0x180BFF3A0", 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: 0x06002253 RID: 8787 RVA: 0x000164B8 File Offset: 0x000146B8
[Token(Token = "0x6002253")]
[Address(RVA = "0xBFF560", Offset = "0xBFE560", VA = "0x180BFF560", 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: 0x06002254 RID: 8788 RVA: 0x000164D0 File Offset: 0x000146D0
[Token(Token = "0x6002254")]
[Address(RVA = "0x4F9150", Offset = "0x4F8150", VA = "0x1804F9150", 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: 0x06002255 RID: 8789
[Token(Token = "0x6002255")]
[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: 0x06002256 RID: 8790 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002256")]
[Address(RVA = "0xBFF730", Offset = "0xBFE730", VA = "0x180BFF730", 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: 0x06002257 RID: 8791
[Token(Token = "0x6002257")]
[Address(Slot = "7")]
public abstract SecurityElement ToXml();
// Token: 0x06002258 RID: 8792 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002258")]
[Address(RVA = "0xBFF420", Offset = "0xBFE420", VA = "0x180BFF420")]
internal SecurityElement Element(int version)
{
return null;
}
// Token: 0x06002259 RID: 8793 RVA: 0x000164E8 File Offset: 0x000146E8
[Token(Token = "0x6002259")]
[Address(RVA = "0xBFF2F0", Offset = "0xBFE2F0", VA = "0x180BFF2F0")]
internal static PermissionState CheckPermissionState(PermissionState state, bool allowUnrestricted)
{
return PermissionState.None;
}
// Token: 0x0600225A RID: 8794 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600225A")]
[Address(RVA = "0xBFF690", Offset = "0xBFE690", VA = "0x180BFF690")]
internal static void ThrowInvalidPermission(IPermission target, Type expected)
{
}
}
}