using System; using System.Runtime.InteropServices; using System.Runtime.Serialization; using Cpp2IlInjected; namespace System.Security.Cryptography.X509Certificates { /// Provides methods that help you use X.509 v.3 certificates. // Token: 0x0200044D RID: 1101 [Token(Token = "0x200044D")] [MonoTODO] [MonoTODO("X509ContentType.SerializedCert isn't supported (anywhere in the class)")] [ComVisible(true)] [Serializable] public class X509Certificate : IDeserializationCallback, ISerializable, IDisposable { // Token: 0x0600261D RID: 9757 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600261D")] [Address(RVA = "0xD1EB90", Offset = "0xD1DB90", VA = "0x180D1EB90")] internal X509Certificate(byte[] data, bool dates) { } /// Initializes a new instance of the class defined from a sequence of bytes representing an X.509v3 certificate. /// A byte array containing data from an X.509 certificate. /// An error with the certificate occurs. For example: /// /// The certificate file does not exist. /// /// The certificate is invalid. /// /// The certificate's password is incorrect. /// The parameter is . /// -or- /// The length of the parameter is 0. // Token: 0x0600261E RID: 9758 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600261E")] [Address(RVA = "0xD1E820", Offset = "0xD1D820", VA = "0x180D1E820")] public X509Certificate(byte[] data) { } // Token: 0x0600261F RID: 9759 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600261F")] [Address(RVA = "0xD1EA10", Offset = "0xD1DA10", VA = "0x180D1EA10")] internal X509Certificate(X509CertificateImpl impl) { } /// Initializes a new instance of the class using another class. /// A class from which to initialize this class. /// An error with the certificate occurs. For example: /// /// The certificate file does not exist. /// /// The certificate is invalid. /// /// The certificate's password is incorrect. /// The value of the parameter is . // Token: 0x06002620 RID: 9760 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002620")] [Address(RVA = "0xD1E870", Offset = "0xD1D870", VA = "0x180D1E870")] public X509Certificate(X509Certificate cert) { } // Token: 0x06002621 RID: 9761 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002621")] [Address(RVA = "0xD1E5C0", Offset = "0xD1D5C0", VA = "0x180D1E5C0")] internal void ImportHandle(X509CertificateImpl impl) { } // Token: 0x17000575 RID: 1397 // (get) Token: 0x06002622 RID: 9762 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x17000575")] internal X509CertificateImpl Impl { [Token(Token = "0x6002622")] [Address(RVA = "0xD1EBF0", Offset = "0xD1DBF0", VA = "0x180D1EBF0")] get { return null; } } // Token: 0x17000576 RID: 1398 // (get) Token: 0x06002623 RID: 9763 RVA: 0x00017958 File Offset: 0x00015B58 [Token(Token = "0x17000576")] internal bool IsValid { [Token(Token = "0x6002623")] [Address(RVA = "0xD1EC60", Offset = "0xD1DC60", VA = "0x180D1EC60")] get { return default(bool); } } /// Compares two objects for equality. /// An object to compare to the current object. /// /// if the current object is equal to the object specified by the parameter; otherwise, . // Token: 0x06002624 RID: 9764 RVA: 0x00017970 File Offset: 0x00015B70 [Token(Token = "0x6002624")] [Address(RVA = "0xD1E1C0", Offset = "0xD1D1C0", VA = "0x180D1E1C0", Slot = "7")] public virtual bool Equals(X509Certificate other) { return default(bool); } /// Returns the hash value for the X.509v3 certificate as an array of bytes. /// The hash value for the X.509 certificate. // Token: 0x06002625 RID: 9765 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6002625")] [Address(RVA = "0xD1E2D0", Offset = "0xD1D2D0", VA = "0x180D1E2D0", Slot = "8")] public virtual byte[] GetCertHash() { return null; } /// Returns the SHA1 hash value for the X.509v3 certificate as a hexadecimal string. /// The hexadecimal string representation of the X.509 certificate hash value. // Token: 0x06002626 RID: 9766 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6002626")] [Address(RVA = "0xD1E2A0", Offset = "0xD1D2A0", VA = "0x180D1E2A0", Slot = "9")] public virtual string GetCertHashString() { return null; } /// Returns the hash code for the X.509v3 certificate as an integer. /// The hash code for the X.509 certificate as an integer. // Token: 0x06002627 RID: 9767 RVA: 0x00017988 File Offset: 0x00015B88 [Token(Token = "0x6002627")] [Address(RVA = "0xD1E350", Offset = "0xD1D350", VA = "0x180D1E350", Slot = "2")] public override int GetHashCode() { return 0; } /// Returns the public key for the X.509v3 certificate as an array of bytes. /// The public key for the X.509 certificate as an array of bytes. /// The certificate context is invalid. // Token: 0x06002628 RID: 9768 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6002628")] [Address(RVA = "0xD1E3B0", Offset = "0xD1D3B0", VA = "0x180D1E3B0", Slot = "10")] public virtual byte[] GetPublicKey() { return null; } /// Returns the raw data for the entire X.509v3 certificate as an array of bytes. /// A byte array containing the X.509 certificate data. // Token: 0x06002629 RID: 9769 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6002629")] [Address(RVA = "0xD1E440", Offset = "0xD1D440", VA = "0x180D1E440", Slot = "11")] public virtual byte[] GetRawCertData() { return null; } /// Returns the serial number of the X.509v3 certificate as an array of bytes in little-endian order. /// The serial number of the X.509 certificate as an array of bytes in little-endian order. /// The certificate context is invalid. // Token: 0x0600262A RID: 9770 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x600262A")] [Address(RVA = "0xD1E530", Offset = "0xD1D530", VA = "0x180D1E530", Slot = "12")] public virtual byte[] GetSerialNumber() { return null; } /// Returns the serial number of the X.509v3 certificate as a little-endian hexadecimal string . /// The serial number of the X.509 certificate as a little-endian hexadecimal string. // Token: 0x0600262B RID: 9771 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x600262B")] [Address(RVA = "0xD1E4D0", Offset = "0xD1D4D0", VA = "0x180D1E4D0", Slot = "13")] public virtual string GetSerialNumberString() { return null; } /// Returns a string representation of the current object. /// A string representation of the current object. // Token: 0x0600262C RID: 9772 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x600262C")] [Address(RVA = "0xD1E7B0", Offset = "0xD1D7B0", VA = "0x180D1E7B0", Slot = "3")] public override string ToString() { return null; } /// Returns a string representation of the current object, with extra information, if specified. /// /// to produce the verbose form of the string representation; otherwise, . /// A string representation of the current object. // Token: 0x0600262D RID: 9773 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x600262D")] [Address(RVA = "0xD1E7C0", Offset = "0xD1D7C0", VA = "0x180D1E7C0", Slot = "14")] public virtual string ToString(bool fVerbose) { return null; } /// Initializes a new instance of the class. // Token: 0x0600262E RID: 9774 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600262E")] [Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")] public X509Certificate() { } /// Initializes a new instance of the class using a object and a structure. /// A object that describes serialization information. /// A structure that describes how serialization should be performed. /// An error with the certificate occurs. For example: /// /// The certificate file does not exist. /// /// The certificate is invalid. /// /// The certificate's password is incorrect. // Token: 0x0600262F RID: 9775 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600262F")] [Address(RVA = "0xD1EAA0", Offset = "0xD1DAA0", VA = "0x180D1EAA0")] public X509Certificate(SerializationInfo info, StreamingContext context) { } /// Gets the name of the certificate authority that issued the X.509v3 certificate. /// The name of the certificate authority that issued the X.509v3 certificate. /// The certificate handle is invalid. // Token: 0x17000577 RID: 1399 // (get) Token: 0x06002630 RID: 9776 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x17000577")] public string Issuer { [Token(Token = "0x6002630")] [Address(RVA = "0xD1EC80", Offset = "0xD1DC80", VA = "0x180D1EC80")] get { return null; } } /// Gets the subject distinguished name from the certificate. /// The subject distinguished name from the certificate. /// The certificate handle is invalid. // Token: 0x17000578 RID: 1400 // (get) Token: 0x06002631 RID: 9777 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x17000578")] public string Subject { [Token(Token = "0x6002631")] [Address(RVA = "0xD1ED20", Offset = "0xD1DD20", VA = "0x180D1ED20")] get { return null; } } /// Compares two objects for equality. /// An object to compare to the current object. /// /// if the current object is equal to the object specified by the parameter; otherwise, . // Token: 0x06002632 RID: 9778 RVA: 0x000179A0 File Offset: 0x00015BA0 [Token(Token = "0x6002632")] [Address(RVA = "0xD1E120", Offset = "0xD1D120", VA = "0x180D1E120", Slot = "0")] [ComVisible(false)] public override bool Equals(object obj) { return default(bool); } /// Populates the object using data from a byte array, a password, and flags for determining how the private key is imported. /// A byte array containing data from an X.509 certificate. /// The password required to access the X.509 certificate data. /// A bitwise combination of the enumeration values that control where and how to import the certificate. /// The parameter is . /// -or- /// The length of the parameter is 0. // Token: 0x06002633 RID: 9779 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002633")] [Address(RVA = "0xD1E5F0", Offset = "0xD1D5F0", VA = "0x180D1E5F0", Slot = "15")] [MonoTODO] [MonoTODO("missing KeyStorageFlags support")] [ComVisible(false)] public virtual void Import(byte[] rawData, string password, X509KeyStorageFlags keyStorageFlags) { } /// Implements the interface and is called back by the deserialization event when deserialization is complete. /// The source of the deserialization event. // Token: 0x06002634 RID: 9780 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002634")] [Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "4")] void IDeserializationCallback.OnDeserialization(object sender) { } /// Gets serialization information with all the data needed to recreate an instance of the current object. /// The object to populate with serialization information. /// The destination context of the serialization. // Token: 0x06002635 RID: 9781 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002635")] [Address(RVA = "0xD1E6F0", Offset = "0xD1D6F0", VA = "0x180D1E6F0", Slot = "5")] void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context) { } /// Releases all resources used by the current object. // Token: 0x06002636 RID: 9782 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002636")] [Address(RVA = "0xB2C230", Offset = "0xB2B230", VA = "0x180B2C230", Slot = "6")] public void Dispose() { } /// Releases all of the unmanaged resources used by this and optionally releases the managed resources. /// /// to release both managed and unmanaged resources; to release only unmanaged resources. // Token: 0x06002637 RID: 9783 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002637")] [Address(RVA = "0xD1E100", Offset = "0xD1D100", VA = "0x180D1E100", Slot = "16")] protected virtual void Dispose(bool disposing) { } /// Resets the state of the object. // Token: 0x06002638 RID: 9784 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002638")] [Address(RVA = "0xD1E650", Offset = "0xD1D650", VA = "0x180D1E650", Slot = "17")] [ComVisible(false)] public virtual void Reset() { } // Token: 0x04001546 RID: 5446 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4001546")] private X509CertificateImpl impl; // Token: 0x04001547 RID: 5447 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4001547")] private bool hideDates; // Token: 0x04001548 RID: 5448 [global::Cpp2IlInjected.FieldOffset(Offset = "0x20")] [Token(Token = "0x4001548")] private string issuer_name; // Token: 0x04001549 RID: 5449 [global::Cpp2IlInjected.FieldOffset(Offset = "0x28")] [Token(Token = "0x4001549")] private string subject_name; } }