using System; using Cpp2IlInjected; namespace System.Security.Cryptography.X509Certificates { /// Defines the constraints set on a certificate. This class cannot be inherited. // Token: 0x020001DC RID: 476 [Token(Token = "0x20001DC")] public sealed class X509BasicConstraintsExtension : X509Extension { /// Initializes a new instance of the class. // Token: 0x06000C59 RID: 3161 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6000C59")] [Address(RVA = "0xC8A120", Offset = "0xC89120", VA = "0x180C8A120")] 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: 0x06000C5A RID: 3162 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6000C5A")] [Address(RVA = "0xC8A3D0", Offset = "0xC893D0", VA = "0x180C8A3D0")] 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: 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) { } /// Gets a value indicating whether a certificate is a certificate authority (CA) certificate. /// /// if the certificate is a certificate authority (CA) certificate, otherwise, . // 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); } } /// 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: 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); } } /// 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: 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; } } /// Initializes a new instance of the class using an object. /// The encoded data to use to create the extension. // 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; } }