Files
Aug2021-Cpp2IL-Dump/mscorlib/System/Security/SecurityElement.cs
T
2026-04-10 22:50:51 +02:00

376 lines
15 KiB
C#

using System;
using System.Collections;
using System.Runtime.InteropServices;
using System.Text;
using Cpp2IlInjected;
namespace System.Security
{
/// <summary>Represents the XML object model for encoding security objects. This class cannot be inherited.</summary>
// Token: 0x020003A8 RID: 936
[Token(Token = "0x20003A8")]
[ComVisible(true)]
[Serializable]
public sealed class SecurityElement
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.SecurityElement" /> class with the specified tag.</summary>
/// <param name="tag">The tag name of an XML element.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="tag" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">The <paramref name="tag" /> parameter is invalid in XML.</exception>
// Token: 0x06002066 RID: 8294 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002066")]
[Address(RVA = "0x2C43790", Offset = "0x2C42590", VA = "0x182C43790")]
public SecurityElement(string tag)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.SecurityElement" /> class with the specified tag and text.</summary>
/// <param name="tag">The tag name of the XML element.</param>
/// <param name="text">The text content within the element.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="tag" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">The <paramref name="tag" /> parameter or <paramref name="text" /> parameter is invalid in XML.</exception>
// Token: 0x06002067 RID: 8295 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002067")]
[Address(RVA = "0x2C437A0", Offset = "0x2C425A0", VA = "0x182C437A0")]
public SecurityElement(string tag, string text)
{
}
/// <summary>Gets or sets the attributes of an XML element as name/value pairs.</summary>
/// <returns>The <see cref="T:System.Collections.Hashtable" /> object for the attribute values of the XML element.</returns>
/// <exception cref="T:System.InvalidCastException">The name or value of the <see cref="T:System.Collections.Hashtable" /> object is invalid.</exception>
/// <exception cref="T:System.ArgumentException">The name is not a valid XML attribute name.</exception>
// Token: 0x1700045A RID: 1114
// (get) Token: 0x06002068 RID: 8296 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700045A")]
public Hashtable Attributes
{
[Token(Token = "0x6002068")]
[Address(RVA = "0x2C43A50", Offset = "0x2C42850", VA = "0x182C43A50")]
get
{
return null;
}
}
/// <summary>Gets or sets the array of child elements of the XML element.</summary>
/// <returns>The ordered child elements of the XML element as security elements.</returns>
/// <exception cref="T:System.ArgumentException">A child of the XML parent node is <see langword="null" />.</exception>
// Token: 0x1700045B RID: 1115
// (get) Token: 0x06002069 RID: 8297 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700045B")]
public ArrayList Children
{
[Token(Token = "0x6002069")]
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
get
{
return null;
}
}
/// <summary>Gets or sets the tag name of an XML element.</summary>
/// <returns>The tag name of an XML element.</returns>
/// <exception cref="T:System.ArgumentNullException">The tag is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">The tag is not valid in XML.</exception>
// Token: 0x1700045C RID: 1116
// (get) Token: 0x0600206A RID: 8298 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700045C")]
public string Tag
{
[Token(Token = "0x600206A")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return null;
}
}
/// <summary>Gets or sets the text within an XML element.</summary>
/// <returns>The value of the text within an XML element.</returns>
/// <exception cref="T:System.ArgumentException">The text is not valid in XML.</exception>
// Token: 0x1700045D RID: 1117
// (get) Token: 0x0600206B RID: 8299 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x0600206C RID: 8300 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700045D")]
public string Text
{
[Token(Token = "0x600206B")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return null;
}
[Token(Token = "0x600206C")]
[Address(RVA = "0x2C43CA0", Offset = "0x2C42AA0", VA = "0x182C43CA0")]
set
{
}
}
/// <summary>Adds a name/value attribute to an XML element.</summary>
/// <param name="name">The name of the attribute.</param>
/// <param name="value">The value of the attribute.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="name" /> parameter or <paramref name="value" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">The <paramref name="name" /> parameter or <paramref name="value" /> parameter is invalid in XML.
/// -or-
/// An attribute with the name specified by the <paramref name="name" /> parameter already exists.</exception>
// Token: 0x0600206D RID: 8301 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600206D")]
[Address(RVA = "0x2C41FB0", Offset = "0x2C40DB0", VA = "0x182C41FB0")]
public void AddAttribute(string name, string value)
{
}
/// <summary>Adds a child element to the XML element.</summary>
/// <param name="child">The child element to add.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="child" /> parameter is <see langword="null" />.</exception>
// Token: 0x0600206E RID: 8302 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600206E")]
[Address(RVA = "0x2C42140", Offset = "0x2C40F40", VA = "0x182C42140")]
public void AddChild(SecurityElement child)
{
}
/// <summary>Replaces invalid XML characters in a string with their valid XML equivalent.</summary>
/// <param name="str">The string within which to escape invalid characters.</param>
/// <returns>The input string with invalid characters replaced.</returns>
// Token: 0x0600206F RID: 8303 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600206F")]
[Address(RVA = "0x2C42200", Offset = "0x2C41000", VA = "0x182C42200")]
public static string Escape(string str)
{
return null;
}
// Token: 0x06002070 RID: 8304 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002070")]
[Address(RVA = "0x2C434F0", Offset = "0x2C422F0", VA = "0x182C434F0")]
private static string Unescape(string str)
{
return null;
}
/// <summary>Creates a security element from an XML-encoded string.</summary>
/// <param name="xml">The XML-encoded string from which to create the security element.</param>
/// <returns>A <see cref="T:System.Security.SecurityElement" /> created from the XML.</returns>
/// <exception cref="T:System.Security.XmlSyntaxException">
/// <paramref name="xml" /> contains one or more single quotation mark characters.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="xml" /> is <see langword="null" />.</exception>
// Token: 0x06002071 RID: 8305 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002071")]
[Address(RVA = "0x2C42460", Offset = "0x2C41260", VA = "0x182C42460")]
public static SecurityElement FromString(string xml)
{
return null;
}
/// <summary>Determines whether a string is a valid attribute name.</summary>
/// <param name="name">The attribute name to test for validity.</param>
/// <returns>
/// <see langword="true" /> if the <paramref name="name" /> parameter is a valid XML attribute name; otherwise, <see langword="false" />.</returns>
// Token: 0x06002072 RID: 8306 RVA: 0x000141A8 File Offset: 0x000123A8
[Token(Token = "0x6002072")]
[Address(RVA = "0x2C427B0", Offset = "0x2C415B0", VA = "0x182C427B0")]
public static bool IsValidAttributeName(string name)
{
return default(bool);
}
/// <summary>Determines whether a string is a valid attribute value.</summary>
/// <param name="value">The attribute value to test for validity.</param>
/// <returns>
/// <see langword="true" /> if the <paramref name="value" /> parameter is a valid XML attribute value; otherwise, <see langword="false" />.</returns>
// Token: 0x06002073 RID: 8307 RVA: 0x000141C0 File Offset: 0x000123C0
[Token(Token = "0x6002073")]
[Address(RVA = "0x2C42840", Offset = "0x2C41640", VA = "0x182C42840")]
public static bool IsValidAttributeValue(string value)
{
return default(bool);
}
/// <summary>Determines whether a string is a valid tag.</summary>
/// <param name="tag">The tag to test for validity.</param>
/// <returns>
/// <see langword="true" /> if the <paramref name="tag" /> parameter is a valid XML tag; otherwise, <see langword="false" />.</returns>
// Token: 0x06002074 RID: 8308 RVA: 0x000141D8 File Offset: 0x000123D8
[Token(Token = "0x6002074")]
[Address(RVA = "0x2C428D0", Offset = "0x2C416D0", VA = "0x182C428D0")]
public static bool IsValidTag(string tag)
{
return default(bool);
}
/// <summary>Determines whether a string is valid as text within an XML element.</summary>
/// <param name="text">The text to test for validity.</param>
/// <returns>
/// <see langword="true" /> if the <paramref name="text" /> parameter is a valid XML text element; otherwise, <see langword="false" />.</returns>
// Token: 0x06002075 RID: 8309 RVA: 0x000141F0 File Offset: 0x000123F0
[Token(Token = "0x6002075")]
[Address(RVA = "0x2C42960", Offset = "0x2C41760", VA = "0x182C42960")]
public static bool IsValidText(string text)
{
return default(bool);
}
/// <summary>Finds a child by its tag name.</summary>
/// <param name="tag">The tag for which to search in child elements.</param>
/// <returns>The first child XML element with the specified tag value, or <see langword="null" /> if no child element with <paramref name="tag" /> exists.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="tag" /> parameter is <see langword="null" />.</exception>
// Token: 0x06002076 RID: 8310 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002076")]
[Address(RVA = "0x2C429F0", Offset = "0x2C417F0", VA = "0x182C429F0")]
public SecurityElement SearchForChildByTag(string tag)
{
return null;
}
/// <summary>Finds a child by its tag name and returns the contained text.</summary>
/// <param name="tag">The tag for which to search in child elements.</param>
/// <returns>The text contents of the first child element with the specified tag value.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="tag" /> is <see langword="null" />.</exception>
// Token: 0x06002077 RID: 8311 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002077")]
[Address(RVA = "0x2C42D70", Offset = "0x2C41B70", VA = "0x182C42D70")]
public string SearchForTextOfTag(string tag)
{
return null;
}
/// <summary>Produces a string representation of an XML element and its constituent attributes, child elements, and text.</summary>
/// <returns>The XML element and its contents.</returns>
// Token: 0x06002078 RID: 8312 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002078")]
[Address(RVA = "0x2C42EF0", Offset = "0x2C41CF0", VA = "0x182C42EF0", Slot = "3")]
public override string ToString()
{
return null;
}
// Token: 0x06002079 RID: 8313 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002079")]
[Address(RVA = "0x2C42F80", Offset = "0x2C41D80", VA = "0x182C42F80")]
private void ToXml(ref StringBuilder s, int level)
{
}
// Token: 0x0600207A RID: 8314 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600207A")]
[Address(RVA = "0x2C425B0", Offset = "0x2C413B0", VA = "0x182C425B0")]
internal SecurityElement.SecurityAttribute GetAttribute(string name)
{
return null;
}
// Token: 0x1700045E RID: 1118
// (set) Token: 0x0600207B RID: 8315 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700045E")]
internal string m_strText
{
[Token(Token = "0x600207B")]
[Address(RVA = "0x3F7200", Offset = "0x3F6000", VA = "0x1803F7200")]
set
{
}
}
// Token: 0x0600207C RID: 8316 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600207C")]
[Address(RVA = "0x2C42B40", Offset = "0x2C41940", VA = "0x182C42B40")]
internal string SearchForTextOfLocalName(string strLocalName)
{
return null;
}
// Token: 0x04001270 RID: 4720
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001270")]
private string text;
// Token: 0x04001271 RID: 4721
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001271")]
private string tag;
// Token: 0x04001272 RID: 4722
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4001272")]
private ArrayList attributes;
// Token: 0x04001273 RID: 4723
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4001273")]
private ArrayList children;
// Token: 0x04001274 RID: 4724
[Token(Token = "0x4001274")]
private static readonly char[] invalid_tag_chars;
// Token: 0x04001275 RID: 4725
[Token(Token = "0x4001275")]
private static readonly char[] invalid_text_chars;
// Token: 0x04001276 RID: 4726
[Token(Token = "0x4001276")]
private static readonly char[] invalid_attr_name_chars;
// Token: 0x04001277 RID: 4727
[Token(Token = "0x4001277")]
private static readonly char[] invalid_attr_value_chars;
// Token: 0x04001278 RID: 4728
[Token(Token = "0x4001278")]
private static readonly char[] invalid_chars;
// Token: 0x020003A9 RID: 937
[Token(Token = "0x20003A9")]
internal class SecurityAttribute
{
// Token: 0x0600207E RID: 8318 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600207E")]
[Address(RVA = "0x2C41D40", Offset = "0x2C40B40", VA = "0x182C41D40")]
public SecurityAttribute(string name, string value)
{
}
// Token: 0x1700045F RID: 1119
// (get) Token: 0x0600207F RID: 8319 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700045F")]
public string Name
{
[Token(Token = "0x600207F")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return null;
}
}
// Token: 0x17000460 RID: 1120
// (get) Token: 0x06002080 RID: 8320 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000460")]
public string Value
{
[Token(Token = "0x6002080")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return null;
}
}
// Token: 0x04001279 RID: 4729
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001279")]
private string _name;
// Token: 0x0400127A RID: 4730
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x400127A")]
private string _value;
}
}
}