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: 0x020003A5 RID: 933
|
|
[Token(Token = "0x20003A5")]
|
|
[MonoTODO]
|
|
[MonoTODO("CAS support is experimental (and unsupported).")]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public class PermissionSet : ISecurityEncodable, ICollection, IEnumerable, IDeserializationCallback
|
|
{
|
|
// Token: 0x06002050 RID: 8272 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002050")]
|
|
[Address(RVA = "0x2DF0D40", Offset = "0x2DEFB40", VA = "0x182DF0D40")]
|
|
internal PermissionSet()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002051 RID: 8273 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002051")]
|
|
[Address(RVA = "0x2DF0DA0", Offset = "0x2DEFBA0", VA = "0x182DF0DA0")]
|
|
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: 0x06002052 RID: 8274 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002052")]
|
|
[Address(RVA = "0x2DF0500", Offset = "0x2DEF300", VA = "0x182DF0500", Slot = "11")]
|
|
public virtual void CopyTo(Array array, int index)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002053 RID: 8275 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002053")]
|
|
[Address(RVA = "0x2DF0490", Offset = "0x2DEF290", VA = "0x182DF0490")]
|
|
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: 0x06002054 RID: 8276 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002054")]
|
|
[Address(RVA = "0x2DF0820", Offset = "0x2DEF620", VA = "0x182DF0820", 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: 0x06002055 RID: 8277 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002055")]
|
|
[Address(RVA = "0x2DF08A0", Offset = "0x2DEF6A0", VA = "0x182DF08A0", 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: 0x06002056 RID: 8278 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002056")]
|
|
[Address(RVA = "0x2DF08E0", Offset = "0x2DEF6E0", VA = "0x182DF08E0", 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: 0x17000456 RID: 1110
|
|
// (get) Token: 0x06002057 RID: 8279 RVA: 0x00014130 File Offset: 0x00012330
|
|
[Token(Token = "0x17000456")]
|
|
public virtual int Count
|
|
{
|
|
[Token(Token = "0x6002057")]
|
|
[Address(RVA = "0x4A44B0", Offset = "0x4A32B0", VA = "0x1804A44B0", 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: 0x17000457 RID: 1111
|
|
// (get) Token: 0x06002058 RID: 8280 RVA: 0x00014148 File Offset: 0x00012348
|
|
[Token(Token = "0x17000457")]
|
|
public virtual bool IsSynchronized
|
|
{
|
|
[Token(Token = "0x6002058")]
|
|
[Address(RVA = "0x2DF0E30", Offset = "0x2DEFC30", VA = "0x182DF0E30", 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: 0x17000458 RID: 1112
|
|
// (get) Token: 0x06002059 RID: 8281 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x17000458")]
|
|
public virtual object SyncRoot
|
|
{
|
|
[Token(Token = "0x6002059")]
|
|
[Address(RVA = "0x434BD0", Offset = "0x4339D0", VA = "0x180434BD0", 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: 0x0600205A RID: 8282 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600205A")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", 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: 0x0600205B RID: 8283 RVA: 0x00014160 File Offset: 0x00012360
|
|
[Token(Token = "0x600205B")]
|
|
[Address(RVA = "0x2DF0660", Offset = "0x2DEF460", VA = "0x182DF0660", 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: 0x0600205C RID: 8284 RVA: 0x00014178 File Offset: 0x00012378
|
|
[Token(Token = "0x600205C")]
|
|
[Address(RVA = "0x2DF0850", Offset = "0x2DEF650", VA = "0x182DF0850", Slot = "2")]
|
|
[ComVisible(false)]
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x04001261 RID: 4705
|
|
[Token(Token = "0x4001261")]
|
|
private static object[] psUnrestricted;
|
|
|
|
// Token: 0x04001262 RID: 4706
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4001262")]
|
|
private PermissionState state;
|
|
|
|
// Token: 0x04001263 RID: 4707
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4001263")]
|
|
private ArrayList list;
|
|
|
|
// Token: 0x04001264 RID: 4708
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4001264")]
|
|
private bool[] _ignored;
|
|
|
|
// Token: 0x04001265 RID: 4709
|
|
[Token(Token = "0x4001265")]
|
|
private static object[] action;
|
|
}
|
|
}
|