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

156 lines
6.9 KiB
C#

using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Defines the constraints set on a certificate. This class cannot be inherited.</summary>
// Token: 0x020001DC RID: 476
[Token(Token = "0x20001DC")]
public sealed class X509BasicConstraintsExtension : X509Extension
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension" /> class.</summary>
// Token: 0x06000C59 RID: 3161 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C59")]
[Address(RVA = "0xC8A120", Offset = "0xC89120", VA = "0x180C8A120")]
public X509BasicConstraintsExtension()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension" /> class using an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object and a value that identifies whether the extension is critical.</summary>
/// <param name="encodedBasicConstraints">The encoded data to use to create the extension.</param>
/// <param name="critical">
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
// Token: 0x06000C5A RID: 3162 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C5A")]
[Address(RVA = "0xC8A3D0", Offset = "0xC893D0", VA = "0x180C8A3D0")]
public X509BasicConstraintsExtension(AsnEncodedData encodedBasicConstraints, bool critical)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension" /> class. Parameters specify a value that indicates whether a certificate is a certificate authority (CA) certificate, a value that indicates whether the certificate has a restriction on the number of path levels it allows, the number of levels allowed in a certificate's path, and a value that indicates whether the extension is critical.</summary>
/// <param name="certificateAuthority">
/// <see langword="true" /> if the certificate is a certificate authority (CA) certificate; otherwise, <see langword="false" />.</param>
/// <param name="hasPathLengthConstraint">
/// <see langword="true" /> if the certificate has a restriction on the number of path levels it allows; otherwise, <see langword="false" />.</param>
/// <param name="pathLengthConstraint">The number of levels allowed in a certificate's path.</param>
/// <param name="critical">
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
// Token: 0x06000C5B RID: 3163 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C5B")]
[Address(RVA = "0xC8A1B0", Offset = "0xC891B0", VA = "0x180C8A1B0")]
public X509BasicConstraintsExtension(bool certificateAuthority, bool hasPathLengthConstraint, int pathLengthConstraint, bool critical)
{
}
/// <summary>Gets a value indicating whether a certificate is a certificate authority (CA) certificate.</summary>
/// <returns>
/// <see langword="true" /> if the certificate is a certificate authority (CA) certificate, otherwise, <see langword="false" />.</returns>
// Token: 0x17000241 RID: 577
// (get) Token: 0x06000C5C RID: 3164 RVA: 0x00006960 File Offset: 0x00004B60
[Token(Token = "0x17000241")]
public bool CertificateAuthority
{
[Token(Token = "0x6000C5C")]
[Address(RVA = "0xC8A490", Offset = "0xC89490", VA = "0x180C8A490")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether a certificate has a restriction on the number of path levels it allows.</summary>
/// <returns>
/// <see langword="true" /> if the certificate has a restriction on the number of path levels it allows, otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The extension cannot be decoded.</exception>
// Token: 0x17000242 RID: 578
// (get) Token: 0x06000C5D RID: 3165 RVA: 0x00006978 File Offset: 0x00004B78
[Token(Token = "0x17000242")]
public bool HasPathLengthConstraint
{
[Token(Token = "0x6000C5D")]
[Address(RVA = "0xC8A500", Offset = "0xC89500", VA = "0x180C8A500")]
get
{
return default(bool);
}
}
/// <summary>Gets the number of levels allowed in a certificate's path.</summary>
/// <returns>An integer indicating the number of levels allowed in a certificate's path.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The extension cannot be decoded.</exception>
// Token: 0x17000243 RID: 579
// (get) Token: 0x06000C5E RID: 3166 RVA: 0x00006990 File Offset: 0x00004B90
[Token(Token = "0x17000243")]
public int PathLengthConstraint
{
[Token(Token = "0x6000C5E")]
[Address(RVA = "0xC8A570", Offset = "0xC89570", VA = "0x180C8A570")]
get
{
return 0;
}
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension" /> class using an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object.</summary>
/// <param name="asnEncodedData">The encoded data to use to create the extension.</param>
// Token: 0x06000C5F RID: 3167 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C5F")]
[Address(RVA = "0xC89AA0", Offset = "0xC88AA0", VA = "0x180C89AA0", Slot = "4")]
public override void CopyFrom(AsnEncodedData asnEncodedData)
{
}
// Token: 0x06000C60 RID: 3168 RVA: 0x000069A8 File Offset: 0x00004BA8
[Token(Token = "0x6000C60")]
[Address(RVA = "0xC89C30", Offset = "0xC88C30", VA = "0x180C89C30")]
internal AsnDecodeStatus Decode(byte[] extension)
{
return AsnDecodeStatus.Ok;
}
// Token: 0x06000C61 RID: 3169 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C61")]
[Address(RVA = "0xC89DD0", Offset = "0xC88DD0", VA = "0x180C89DD0")]
internal byte[] Encode()
{
return null;
}
// Token: 0x06000C62 RID: 3170 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C62")]
[Address(RVA = "0xC89F30", Offset = "0xC88F30", VA = "0x180C89F30", Slot = "5")]
internal override string ToString(bool multiLine)
{
return null;
}
// Token: 0x040006C9 RID: 1737
[Token(Token = "0x40006C9")]
internal const string oid = "2.5.29.19";
// Token: 0x040006CA RID: 1738
[Token(Token = "0x40006CA")]
internal const string friendlyName = "Basic Constraints";
// Token: 0x040006CB RID: 1739
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40006CB")]
private bool _certificateAuthority;
// Token: 0x040006CC RID: 1740
[FieldOffset(Offset = "0x29")]
[Token(Token = "0x40006CC")]
private bool _hasPathLengthConstraint;
// Token: 0x040006CD RID: 1741
[FieldOffset(Offset = "0x2C")]
[Token(Token = "0x40006CD")]
private int _pathLengthConstraint;
// Token: 0x040006CE RID: 1742
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40006CE")]
private AsnDecodeStatus _status;
}
}