This commit is contained in:
niko
2026-04-10 22:50:51 +02:00
parent 6d1607d5a2
commit f18d448581
17033 changed files with 2863270 additions and 0 deletions
@@ -0,0 +1,263 @@
using System;
using System.Runtime.Serialization;
using System.Text;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Represents an X.509 certificate.</summary>
// Token: 0x020001E1 RID: 481
[Token(Token = "0x20001E1")]
[Serializable]
public class X509Certificate2 : X509Certificate
{
// Token: 0x17000248 RID: 584
// (get) Token: 0x06000C79 RID: 3193 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000248")]
internal X509Certificate2Impl Impl
{
[Token(Token = "0x6000C79")]
[Address(RVA = "0x51A090", Offset = "0x518E90", VA = "0x18051A090")]
get
{
return null;
}
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> class.</summary>
// Token: 0x06000C7A RID: 3194 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C7A")]
[Address(RVA = "0x51A040", Offset = "0x518E40", VA = "0x18051A040")]
public X509Certificate2()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> class using an <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> object.</summary>
/// <param name="certificate">An <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> object.</param>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">An error with the certificate occurs. For example:
///
/// The certificate file does not exist.
///
/// The certificate is invalid.
///
/// The certificate's password is incorrect.</exception>
// Token: 0x06000C7B RID: 3195 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C7B")]
[Address(RVA = "0x519FD0", Offset = "0x518DD0", VA = "0x180519FD0")]
public X509Certificate2(X509Certificate certificate)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> class using the specified serialization and stream context information.</summary>
/// <param name="info">The serialization information required to deserialize the new <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" />.</param>
/// <param name="context">Contextual information about the source of the stream to be deserialized.</param>
// Token: 0x06000C7C RID: 3196 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C7C")]
[Address(RVA = "0x519F50", Offset = "0x518D50", VA = "0x180519F50")]
protected X509Certificate2(SerializationInfo info, StreamingContext context)
{
}
/// <summary>Gets the date in local time after which a certificate is no longer valid.</summary>
/// <returns>A <see cref="T:System.DateTime" /> object that represents the expiration date for the certificate.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The certificate is unreadable.</exception>
// Token: 0x17000249 RID: 585
// (get) Token: 0x06000C7D RID: 3197 RVA: 0x000069D8 File Offset: 0x00004BD8
[Token(Token = "0x17000249")]
public DateTime NotAfter
{
[Token(Token = "0x6000C7D")]
[Address(RVA = "0x51A120", Offset = "0x518F20", VA = "0x18051A120")]
get
{
return default(DateTime);
}
}
/// <summary>Gets the date in local time on which a certificate becomes valid.</summary>
/// <returns>A <see cref="T:System.DateTime" /> object that represents the effective date of the certificate.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The certificate is unreadable.</exception>
// Token: 0x1700024A RID: 586
// (get) Token: 0x06000C7E RID: 3198 RVA: 0x000069F0 File Offset: 0x00004BF0
[Token(Token = "0x1700024A")]
public DateTime NotBefore
{
[Token(Token = "0x6000C7E")]
[Address(RVA = "0x51A170", Offset = "0x518F70", VA = "0x18051A170")]
get
{
return default(DateTime);
}
}
/// <summary>Gets or sets the <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> object that represents the private key associated with a certificate.</summary>
/// <returns>An <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> object, which is either an RSA or DSA cryptographic service provider.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The key value is not an RSA or DSA key, or the key is unreadable.</exception>
/// <exception cref="T:System.ArgumentNullException">The value being set for this property is <see langword="null" />.</exception>
/// <exception cref="T:System.NotSupportedException">The key algorithm for this private key is not supported.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">The X.509 keys do not match.</exception>
/// <exception cref="T:System.ArgumentException">The cryptographic service provider key is <see langword="null" />.</exception>
// Token: 0x1700024B RID: 587
// (get) Token: 0x06000C7F RID: 3199 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700024B")]
public AsymmetricAlgorithm PrivateKey
{
[Token(Token = "0x6000C7F")]
[Address(RVA = "0x51A1C0", Offset = "0x518FC0", VA = "0x18051A1C0")]
get
{
return null;
}
}
/// <summary>Gets a <see cref="P:System.Security.Cryptography.X509Certificates.X509Certificate2.PublicKey" /> object associated with a certificate.</summary>
/// <returns>A <see cref="P:System.Security.Cryptography.X509Certificates.X509Certificate2.PublicKey" /> object.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The key value is not an RSA or DSA key, or the key is unreadable.</exception>
// Token: 0x1700024C RID: 588
// (get) Token: 0x06000C80 RID: 3200 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700024C")]
public PublicKey PublicKey
{
[Token(Token = "0x6000C80")]
[Address(RVA = "0x51A1F0", Offset = "0x518FF0", VA = "0x18051A1F0")]
get
{
return null;
}
}
/// <summary>Gets the serial number of a certificate as a big-endian hexadecimal string.</summary>
/// <returns>The serial number of the certificate as a big-endian hexadecimal string.</returns>
// Token: 0x1700024D RID: 589
// (get) Token: 0x06000C81 RID: 3201 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700024D")]
public string SerialNumber
{
[Token(Token = "0x6000C81")]
[Address(RVA = "0x51A220", Offset = "0x519020", VA = "0x18051A220")]
get
{
return null;
}
}
/// <summary>Gets the algorithm used to create the signature of a certificate.</summary>
/// <returns>The object identifier of the signature algorithm.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The certificate is unreadable.</exception>
// Token: 0x1700024E RID: 590
// (get) Token: 0x06000C82 RID: 3202 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700024E")]
public Oid SignatureAlgorithm
{
[Token(Token = "0x6000C82")]
[Address(RVA = "0x51A240", Offset = "0x519040", VA = "0x18051A240")]
get
{
return null;
}
}
/// <summary>Gets the thumbprint of a certificate.</summary>
/// <returns>The thumbprint of the certificate.</returns>
// Token: 0x1700024F RID: 591
// (get) Token: 0x06000C83 RID: 3203 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700024F")]
public string Thumbprint
{
[Token(Token = "0x6000C83")]
[Address(RVA = "0x51A270", Offset = "0x519070", VA = "0x18051A270")]
get
{
return null;
}
}
/// <summary>Gets the X.509 format version of a certificate.</summary>
/// <returns>The certificate format.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The certificate is unreadable.</exception>
// Token: 0x17000250 RID: 592
// (get) Token: 0x06000C84 RID: 3204 RVA: 0x00006A08 File Offset: 0x00004C08
[Token(Token = "0x17000250")]
public int Version
{
[Token(Token = "0x6000C84")]
[Address(RVA = "0x51A290", Offset = "0x519090", VA = "0x18051A290")]
get
{
return 0;
}
}
/// <summary>Gets the subject and issuer names from a certificate.</summary>
/// <param name="nameType">The <see cref="T:System.Security.Cryptography.X509Certificates.X509NameType" /> value for the subject.</param>
/// <param name="forIssuer">
/// <see langword="true" /> to include the issuer name; otherwise, <see langword="false" />.</param>
/// <returns>The name of the certificate.</returns>
// Token: 0x06000C85 RID: 3205 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C85")]
[Address(RVA = "0x519850", Offset = "0x518650", VA = "0x180519850")]
[MonoTODO]
public string GetNameInfo(X509NameType nameType, bool forIssuer)
{
return null;
}
/// <summary>Populates an <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> object using data from a byte array, a password, and flags for determining how to import the private key.</summary>
/// <param name="rawData">A byte array containing data from an X.509 certificate.</param>
/// <param name="password">The password required to access the X.509 certificate data.</param>
/// <param name="keyStorageFlags">A bitwise combination of the enumeration values that control where and how to import the certificate.</param>
// Token: 0x06000C86 RID: 3206 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C86")]
[Address(RVA = "0x5198A0", Offset = "0x5186A0", VA = "0x1805198A0", Slot = "15")]
[MonoTODO]
public override void Import(byte[] rawData, string password, X509KeyStorageFlags keyStorageFlags)
{
}
/// <summary>Resets the state of an <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> object.</summary>
// Token: 0x06000C87 RID: 3207 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C87")]
[Address(RVA = "0x5198E0", Offset = "0x5186E0", VA = "0x1805198E0", Slot = "17")]
public override void Reset()
{
}
/// <summary>Displays an X.509 certificate in text format.</summary>
/// <returns>The certificate information.</returns>
// Token: 0x06000C88 RID: 3208 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C88")]
[Address(RVA = "0x519E90", Offset = "0x518C90", VA = "0x180519E90", Slot = "3")]
public override string ToString()
{
return null;
}
/// <summary>Displays an X.509 certificate in text format.</summary>
/// <param name="verbose">
/// <see langword="true" /> to display the public key, private key, extensions, and so forth; <see langword="false" /> to display information that is similar to the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> class, including thumbprint, serial number, subject and issuer names, and so on.</param>
/// <returns>The certificate information.</returns>
// Token: 0x06000C89 RID: 3209 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C89")]
[Address(RVA = "0x519930", Offset = "0x518730", VA = "0x180519930", Slot = "14")]
public override string ToString(bool verbose)
{
return null;
}
// Token: 0x06000C8A RID: 3210 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C8A")]
[Address(RVA = "0x519790", Offset = "0x518590", VA = "0x180519790")]
private static void AppendBuffer(StringBuilder sb, byte[] buffer)
{
}
// Token: 0x040006DC RID: 1756
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40006DC")]
private string friendlyName;
// Token: 0x040006DD RID: 1757
[Token(Token = "0x40006DD")]
private static byte[] signedData;
}
}