Files
27Aug2021-Cpp2IL-Dump/System/Security/Cryptography/X509Certificates/X509Certificate2.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

264 lines
12 KiB
C#

using System;
using System.Runtime.Serialization;
using System.Text;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Represents an X.509 certificate.</summary>
// Token: 0x020001DD RID: 477
[Token(Token = "0x20001DD")]
[Serializable]
public class X509Certificate2 : X509Certificate
{
// Token: 0x17000244 RID: 580
// (get) Token: 0x06000C63 RID: 3171 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000244")]
internal X509Certificate2Impl Impl
{
[Token(Token = "0x6000C63")]
[Address(RVA = "0xC8D320", Offset = "0xC8C320", VA = "0x180C8D320")]
get
{
return null;
}
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> class.</summary>
// Token: 0x06000C64 RID: 3172 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C64")]
[Address(RVA = "0xC8D2D0", Offset = "0xC8C2D0", VA = "0x180C8D2D0")]
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: 0x06000C65 RID: 3173 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C65")]
[Address(RVA = "0xC8D260", Offset = "0xC8C260", VA = "0x180C8D260")]
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: 0x06000C66 RID: 3174 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C66")]
[Address(RVA = "0xC8D1E0", Offset = "0xC8C1E0", VA = "0x180C8D1E0")]
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: 0x17000245 RID: 581
// (get) Token: 0x06000C67 RID: 3175 RVA: 0x000069C0 File Offset: 0x00004BC0
[Token(Token = "0x17000245")]
public DateTime NotAfter
{
[Token(Token = "0x6000C67")]
[Address(RVA = "0xC8D3B0", Offset = "0xC8C3B0", VA = "0x180C8D3B0")]
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: 0x17000246 RID: 582
// (get) Token: 0x06000C68 RID: 3176 RVA: 0x000069D8 File Offset: 0x00004BD8
[Token(Token = "0x17000246")]
public DateTime NotBefore
{
[Token(Token = "0x6000C68")]
[Address(RVA = "0xC8D400", Offset = "0xC8C400", VA = "0x180C8D400")]
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: 0x17000247 RID: 583
// (get) Token: 0x06000C69 RID: 3177 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000247")]
public AsymmetricAlgorithm PrivateKey
{
[Token(Token = "0x6000C69")]
[Address(RVA = "0xC8D450", Offset = "0xC8C450", VA = "0x180C8D450")]
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: 0x17000248 RID: 584
// (get) Token: 0x06000C6A RID: 3178 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000248")]
public PublicKey PublicKey
{
[Token(Token = "0x6000C6A")]
[Address(RVA = "0xC8D480", Offset = "0xC8C480", VA = "0x180C8D480")]
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: 0x17000249 RID: 585
// (get) Token: 0x06000C6B RID: 3179 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000249")]
public string SerialNumber
{
[Token(Token = "0x6000C6B")]
[Address(RVA = "0x85E3F0", Offset = "0x85D3F0", VA = "0x18085E3F0")]
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: 0x1700024A RID: 586
// (get) Token: 0x06000C6C RID: 3180 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700024A")]
public Oid SignatureAlgorithm
{
[Token(Token = "0x6000C6C")]
[Address(RVA = "0xC8D4B0", Offset = "0xC8C4B0", VA = "0x180C8D4B0")]
get
{
return null;
}
}
/// <summary>Gets the thumbprint of a certificate.</summary>
/// <returns>The thumbprint of the certificate.</returns>
// Token: 0x1700024B RID: 587
// (get) Token: 0x06000C6D RID: 3181 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700024B")]
public string Thumbprint
{
[Token(Token = "0x6000C6D")]
[Address(RVA = "0xC8D4E0", Offset = "0xC8C4E0", VA = "0x180C8D4E0")]
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: 0x1700024C RID: 588
// (get) Token: 0x06000C6E RID: 3182 RVA: 0x000069F0 File Offset: 0x00004BF0
[Token(Token = "0x1700024C")]
public int Version
{
[Token(Token = "0x6000C6E")]
[Address(RVA = "0xC8D500", Offset = "0xC8C500", VA = "0x180C8D500")]
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: 0x06000C6F RID: 3183 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C6F")]
[Address(RVA = "0xC8CAE0", Offset = "0xC8BAE0", VA = "0x180C8CAE0")]
[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: 0x06000C70 RID: 3184 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C70")]
[Address(RVA = "0xC8CB30", Offset = "0xC8BB30", VA = "0x180C8CB30", 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: 0x06000C71 RID: 3185 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C71")]
[Address(RVA = "0xC8CB70", Offset = "0xC8BB70", VA = "0x180C8CB70", Slot = "17")]
public override void Reset()
{
}
/// <summary>Displays an X.509 certificate in text format.</summary>
/// <returns>The certificate information.</returns>
// Token: 0x06000C72 RID: 3186 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C72")]
[Address(RVA = "0xC8D120", Offset = "0xC8C120", VA = "0x180C8D120", 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: 0x06000C73 RID: 3187 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C73")]
[Address(RVA = "0xC8CBC0", Offset = "0xC8BBC0", VA = "0x180C8CBC0", Slot = "14")]
public override string ToString(bool verbose)
{
return null;
}
// Token: 0x06000C74 RID: 3188 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C74")]
[Address(RVA = "0xC8CA20", Offset = "0xC8BA20", VA = "0x180C8CA20")]
private static void AppendBuffer(StringBuilder sb, byte[] buffer)
{
}
// Token: 0x040006CF RID: 1743
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40006CF")]
private string friendlyName;
// Token: 0x040006D0 RID: 1744
[Token(Token = "0x40006D0")]
private static byte[] signedData;
}
}