using System; using Cpp2IlInjected; namespace System.Security.Cryptography.X509Certificates { /// Defines the constraints set on a certificate. This class cannot be inherited. // Token: 0x020001E0 RID: 480 [Token(Token = "0x20001E0")] public sealed class X509BasicConstraintsExtension : X509Extension { /// Initializes a new instance of the class. // Token: 0x06000C6F RID: 3183 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6000C6F")] [Address(RVA = "0x516E40", Offset = "0x515C40", VA = "0x180516E40")] public X509BasicConstraintsExtension() { } /// Initializes a new instance of the class using an object and a value that identifies whether the extension is critical. /// The encoded data to use to create the extension. /// /// if the extension is critical; otherwise, . // Token: 0x06000C70 RID: 3184 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6000C70")] [Address(RVA = "0x5170F0", Offset = "0x515EF0", VA = "0x1805170F0")] public X509BasicConstraintsExtension(AsnEncodedData encodedBasicConstraints, bool critical) { } /// Initializes a new instance of the 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. /// /// if the certificate is a certificate authority (CA) certificate; otherwise, . /// /// if the certificate has a restriction on the number of path levels it allows; otherwise, . /// The number of levels allowed in a certificate's path. /// /// if the extension is critical; otherwise, . // Token: 0x06000C71 RID: 3185 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6000C71")] [Address(RVA = "0x516ED0", Offset = "0x515CD0", VA = "0x180516ED0")] public X509BasicConstraintsExtension(bool certificateAuthority, bool hasPathLengthConstraint, int pathLengthConstraint, bool critical) { } /// Gets a value indicating whether a certificate is a certificate authority (CA) certificate. /// /// if the certificate is a certificate authority (CA) certificate, otherwise, . // Token: 0x17000245 RID: 581 // (get) Token: 0x06000C72 RID: 3186 RVA: 0x00006978 File Offset: 0x00004B78 [Token(Token = "0x17000245")] public bool CertificateAuthority { [Token(Token = "0x6000C72")] [Address(RVA = "0x5171B0", Offset = "0x515FB0", VA = "0x1805171B0")] get { return default(bool); } } /// Gets a value indicating whether a certificate has a restriction on the number of path levels it allows. /// /// if the certificate has a restriction on the number of path levels it allows, otherwise, . /// The extension cannot be decoded. // Token: 0x17000246 RID: 582 // (get) Token: 0x06000C73 RID: 3187 RVA: 0x00006990 File Offset: 0x00004B90 [Token(Token = "0x17000246")] public bool HasPathLengthConstraint { [Token(Token = "0x6000C73")] [Address(RVA = "0x517220", Offset = "0x516020", VA = "0x180517220")] get { return default(bool); } } /// Gets the number of levels allowed in a certificate's path. /// An integer indicating the number of levels allowed in a certificate's path. /// The extension cannot be decoded. // Token: 0x17000247 RID: 583 // (get) Token: 0x06000C74 RID: 3188 RVA: 0x000069A8 File Offset: 0x00004BA8 [Token(Token = "0x17000247")] public int PathLengthConstraint { [Token(Token = "0x6000C74")] [Address(RVA = "0x517290", Offset = "0x516090", VA = "0x180517290")] get { return 0; } } /// Initializes a new instance of the class using an object. /// The encoded data to use to create the extension. // Token: 0x06000C75 RID: 3189 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6000C75")] [Address(RVA = "0x5167C0", Offset = "0x5155C0", VA = "0x1805167C0", Slot = "4")] public override void CopyFrom(AsnEncodedData asnEncodedData) { } // Token: 0x06000C76 RID: 3190 RVA: 0x000069C0 File Offset: 0x00004BC0 [Token(Token = "0x6000C76")] [Address(RVA = "0x516950", Offset = "0x515750", VA = "0x180516950")] internal AsnDecodeStatus Decode(byte[] extension) { return AsnDecodeStatus.Ok; } // Token: 0x06000C77 RID: 3191 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6000C77")] [Address(RVA = "0x516AF0", Offset = "0x5158F0", VA = "0x180516AF0")] internal byte[] Encode() { return null; } // Token: 0x06000C78 RID: 3192 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6000C78")] [Address(RVA = "0x516C50", Offset = "0x515A50", VA = "0x180516C50", Slot = "5")] internal override string ToString(bool multiLine) { return null; } // Token: 0x040006D6 RID: 1750 [Token(Token = "0x40006D6")] internal const string oid = "2.5.29.19"; // Token: 0x040006D7 RID: 1751 [Token(Token = "0x40006D7")] internal const string friendlyName = "Basic Constraints"; // Token: 0x040006D8 RID: 1752 [FieldOffset(Offset = "0x28")] [Token(Token = "0x40006D8")] private bool _certificateAuthority; // Token: 0x040006D9 RID: 1753 [FieldOffset(Offset = "0x29")] [Token(Token = "0x40006D9")] private bool _hasPathLengthConstraint; // Token: 0x040006DA RID: 1754 [FieldOffset(Offset = "0x2C")] [Token(Token = "0x40006DA")] private int _pathLengthConstraint; // Token: 0x040006DB RID: 1755 [FieldOffset(Offset = "0x30")] [Token(Token = "0x40006DB")] private AsnDecodeStatus _status; } }