186 lines
7.5 KiB
C#
186 lines
7.5 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
using System.Security.Permissions;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Security
|
|
{
|
|
/// <summary>Represents a collection that can contain many different types of permissions.</summary>
|
|
// Token: 0x020003C1 RID: 961
|
|
[Token(Token = "0x20003C1")]
|
|
[MonoTODO]
|
|
[ComVisible(true)]
|
|
[MonoTODO("CAS support is experimental (and unsupported).")]
|
|
[Serializable]
|
|
public class PermissionSet : ISecurityEncodable, ICollection, IEnumerable, IDeserializationCallback
|
|
{
|
|
// Token: 0x0600225C RID: 8796 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600225C")]
|
|
[Address(RVA = "0xD08560", Offset = "0xD07560", VA = "0x180D08560")]
|
|
internal PermissionSet()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600225D RID: 8797 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600225D")]
|
|
[Address(RVA = "0xD085C0", Offset = "0xD075C0", VA = "0x180D085C0")]
|
|
internal PermissionSet(IPermission perm)
|
|
{
|
|
}
|
|
|
|
/// <summary>Copies the permission objects of the set to the indicated location in an <see cref="T:System.Array" />.</summary>
|
|
/// <param name="array">The target array to which to copy.</param>
|
|
/// <param name="index">The starting position in the array to begin copying (zero based).</param>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="array" /> parameter is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentException">The <paramref name="array" /> parameter has more than one dimension.</exception>
|
|
/// <exception cref="T:System.IndexOutOfRangeException">The <paramref name="index" /> parameter is out of the range of the <paramref name="array" /> parameter.</exception>
|
|
// Token: 0x0600225E RID: 8798 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600225E")]
|
|
[Address(RVA = "0xD07D20", Offset = "0xD06D20", VA = "0x180D07D20", Slot = "11")]
|
|
public virtual void CopyTo(Array array, int index)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600225F RID: 8799 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600225F")]
|
|
[Address(RVA = "0xD07CB0", Offset = "0xD06CB0", VA = "0x180D07CB0")]
|
|
internal void CasOnlyDemand(int skip)
|
|
{
|
|
}
|
|
|
|
/// <summary>Returns an enumerator for the permissions of the set.</summary>
|
|
/// <returns>An enumerator object for the permissions of the set.</returns>
|
|
// Token: 0x06002260 RID: 8800 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002260")]
|
|
[Address(RVA = "0xD08040", Offset = "0xD07040", VA = "0x180D08040", Slot = "9")]
|
|
public IEnumerator GetEnumerator()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns a string representation of the <see cref="T:System.Security.PermissionSet" />.</summary>
|
|
/// <returns>A representation of the <see cref="T:System.Security.PermissionSet" />.</returns>
|
|
// Token: 0x06002261 RID: 8801 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002261")]
|
|
[Address(RVA = "0xD080C0", Offset = "0xD070C0", VA = "0x180D080C0", Slot = "3")]
|
|
public override string ToString()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Creates an XML encoding of the security object and its current state.</summary>
|
|
/// <returns>An XML encoding of the security object, including any state information.</returns>
|
|
// Token: 0x06002262 RID: 8802 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002262")]
|
|
[Address(RVA = "0xD08100", Offset = "0xD07100", VA = "0x180D08100", Slot = "12")]
|
|
public virtual SecurityElement ToXml()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets the number of permission objects contained in the permission set.</summary>
|
|
/// <returns>The number of permission objects contained in the <see cref="T:System.Security.PermissionSet" />.</returns>
|
|
// Token: 0x170004CD RID: 1229
|
|
// (get) Token: 0x06002263 RID: 8803 RVA: 0x00016500 File Offset: 0x00014700
|
|
[Token(Token = "0x170004CD")]
|
|
public virtual int Count
|
|
{
|
|
[Token(Token = "0x6002263")]
|
|
[Address(RVA = "0x8E1280", Offset = "0x8E0280", VA = "0x1808E1280", Slot = "13")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether the collection is guaranteed to be thread safe.</summary>
|
|
/// <returns>Always <see langword="false" />.</returns>
|
|
// Token: 0x170004CE RID: 1230
|
|
// (get) Token: 0x06002264 RID: 8804 RVA: 0x00016518 File Offset: 0x00014718
|
|
[Token(Token = "0x170004CE")]
|
|
public virtual bool IsSynchronized
|
|
{
|
|
[Token(Token = "0x6002264")]
|
|
[Address(RVA = "0xD08650", Offset = "0xD07650", VA = "0x180D08650", Slot = "14")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the root object of the current collection.</summary>
|
|
/// <returns>The root object of the current collection.</returns>
|
|
// Token: 0x170004CF RID: 1231
|
|
// (get) Token: 0x06002265 RID: 8805 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170004CF")]
|
|
public virtual object SyncRoot
|
|
{
|
|
[Token(Token = "0x6002265")]
|
|
[Address(RVA = "0x4A65C0", Offset = "0x4A55C0", VA = "0x1804A65C0", Slot = "15")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Runs when the entire object graph has been deserialized.</summary>
|
|
/// <param name="sender">The object that initiated the callback. The functionality for this parameter is not currently implemented.</param>
|
|
// Token: 0x06002266 RID: 8806 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002266")]
|
|
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "10")]
|
|
[MonoTODO]
|
|
void IDeserializationCallback.OnDeserialization(object sender)
|
|
{
|
|
}
|
|
|
|
/// <summary>Determines whether the specified <see cref="T:System.Security.PermissionSet" /> or <see cref="T:System.Security.NamedPermissionSet" /> object is equal to the current <see cref="T:System.Security.PermissionSet" />.</summary>
|
|
/// <param name="obj">The object to compare with the current <see cref="T:System.Security.PermissionSet" />.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the specified object is equal to the current <see cref="T:System.Security.PermissionSet" /> object; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x06002267 RID: 8807 RVA: 0x00016530 File Offset: 0x00014730
|
|
[Token(Token = "0x6002267")]
|
|
[Address(RVA = "0xD07E80", Offset = "0xD06E80", VA = "0x180D07E80", Slot = "0")]
|
|
[ComVisible(false)]
|
|
public override bool Equals(object obj)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Gets a hash code for the <see cref="T:System.Security.PermissionSet" /> object that is suitable for use in hashing algorithms and data structures such as a hash table.</summary>
|
|
/// <returns>A hash code for the current <see cref="T:System.Security.PermissionSet" /> object.</returns>
|
|
// Token: 0x06002268 RID: 8808 RVA: 0x00016548 File Offset: 0x00014748
|
|
[Token(Token = "0x6002268")]
|
|
[Address(RVA = "0xD08070", Offset = "0xD07070", VA = "0x180D08070", Slot = "2")]
|
|
[ComVisible(false)]
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x04001324 RID: 4900
|
|
[Token(Token = "0x4001324")]
|
|
private static object[] psUnrestricted;
|
|
|
|
// Token: 0x04001325 RID: 4901
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4001325")]
|
|
private PermissionState state;
|
|
|
|
// Token: 0x04001326 RID: 4902
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4001326")]
|
|
private ArrayList list;
|
|
|
|
// Token: 0x04001327 RID: 4903
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4001327")]
|
|
private bool[] _ignored;
|
|
|
|
// Token: 0x04001328 RID: 4904
|
|
[Token(Token = "0x4001328")]
|
|
private static object[] action;
|
|
}
|
|
}
|