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: 0x02000431 RID: 1073 [Token(Token = "0x2000431")] [MonoTODO] [ComVisible(true)] [MonoTODO("X509ContentType.SerializedCert isn't supported (anywhere in the class)")] [Serializable] public class X509Certificate : IDeserializationCallback, ISerializable, IDisposable { // Token: 0x06002411 RID: 9233 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002411")] [Address(RVA = "0x2E07030", Offset = "0x2E05E30", VA = "0x182E07030")] 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: 0x06002412 RID: 9234 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002412")] [Address(RVA = "0x2E06CC0", Offset = "0x2E05AC0", VA = "0x182E06CC0")] public X509Certificate(byte[] data) { } // Token: 0x06002413 RID: 9235 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002413")] [Address(RVA = "0x2E06EB0", Offset = "0x2E05CB0", VA = "0x182E06EB0")] 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: 0x06002414 RID: 9236 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002414")] [Address(RVA = "0x2E06D10", Offset = "0x2E05B10", VA = "0x182E06D10")] public X509Certificate(X509Certificate cert) { } // Token: 0x06002415 RID: 9237 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002415")] [Address(RVA = "0x2E06A60", Offset = "0x2E05860", VA = "0x182E06A60")] internal void ImportHandle(X509CertificateImpl impl) { } // Token: 0x170004FE RID: 1278 // (get) Token: 0x06002416 RID: 9238 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x170004FE")] internal X509CertificateImpl Impl { [Token(Token = "0x6002416")] [Address(RVA = "0x2E07090", Offset = "0x2E05E90", VA = "0x182E07090")] get { return null; } } // Token: 0x170004FF RID: 1279 // (get) Token: 0x06002417 RID: 9239 RVA: 0x00015588 File Offset: 0x00013788 [Token(Token = "0x170004FF")] internal bool IsValid { [Token(Token = "0x6002417")] [Address(RVA = "0x2E07100", Offset = "0x2E05F00", VA = "0x182E07100")] 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: 0x06002418 RID: 9240 RVA: 0x000155A0 File Offset: 0x000137A0 [Token(Token = "0x6002418")] [Address(RVA = "0x2E06660", Offset = "0x2E05460", VA = "0x182E06660", 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: 0x06002419 RID: 9241 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6002419")] [Address(RVA = "0x2E06770", Offset = "0x2E05570", VA = "0x182E06770", 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: 0x0600241A RID: 9242 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x600241A")] [Address(RVA = "0x2E06740", Offset = "0x2E05540", VA = "0x182E06740", 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: 0x0600241B RID: 9243 RVA: 0x000155B8 File Offset: 0x000137B8 [Token(Token = "0x600241B")] [Address(RVA = "0x2E067F0", Offset = "0x2E055F0", VA = "0x182E067F0", 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: 0x0600241C RID: 9244 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x600241C")] [Address(RVA = "0x2E06850", Offset = "0x2E05650", VA = "0x182E06850", 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: 0x0600241D RID: 9245 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x600241D")] [Address(RVA = "0x2E068E0", Offset = "0x2E056E0", VA = "0x182E068E0", 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: 0x0600241E RID: 9246 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x600241E")] [Address(RVA = "0x2E069D0", Offset = "0x2E057D0", VA = "0x182E069D0", 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: 0x0600241F RID: 9247 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x600241F")] [Address(RVA = "0x2E06970", Offset = "0x2E05770", VA = "0x182E06970", Slot = "13")] public virtual string GetSerialNumberString() { return null; } /// Returns a string representation of the current object. /// A string representation of the current object. // Token: 0x06002420 RID: 9248 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6002420")] [Address(RVA = "0x2E06C50", Offset = "0x2E05A50", VA = "0x182E06C50", 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: 0x06002421 RID: 9249 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6002421")] [Address(RVA = "0x2E06C60", Offset = "0x2E05A60", VA = "0x182E06C60", Slot = "14")] public virtual string ToString(bool fVerbose) { return null; } /// Initializes a new instance of the class. // Token: 0x06002422 RID: 9250 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002422")] [Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")] 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: 0x06002423 RID: 9251 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002423")] [Address(RVA = "0x2E06F40", Offset = "0x2E05D40", VA = "0x182E06F40")] 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: 0x17000500 RID: 1280 // (get) Token: 0x06002424 RID: 9252 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x17000500")] public string Issuer { [Token(Token = "0x6002424")] [Address(RVA = "0x2E07120", Offset = "0x2E05F20", VA = "0x182E07120")] get { return null; } } /// Gets the subject distinguished name from the certificate. /// The subject distinguished name from the certificate. /// The certificate handle is invalid. // Token: 0x17000501 RID: 1281 // (get) Token: 0x06002425 RID: 9253 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x17000501")] public string Subject { [Token(Token = "0x6002425")] [Address(RVA = "0x2E071C0", Offset = "0x2E05FC0", VA = "0x182E071C0")] 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: 0x06002426 RID: 9254 RVA: 0x000155D0 File Offset: 0x000137D0 [Token(Token = "0x6002426")] [Address(RVA = "0x2E065C0", Offset = "0x2E053C0", VA = "0x182E065C0", 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: 0x06002427 RID: 9255 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002427")] [Address(RVA = "0x2E06A90", Offset = "0x2E05890", VA = "0x182E06A90", 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: 0x06002428 RID: 9256 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002428")] [Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", 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: 0x06002429 RID: 9257 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002429")] [Address(RVA = "0x2E06B90", Offset = "0x2E05990", VA = "0x182E06B90", Slot = "5")] void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context) { } /// Releases all resources used by the current object. // Token: 0x0600242A RID: 9258 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600242A")] [Address(RVA = "0x2572990", Offset = "0x2571790", VA = "0x182572990", 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: 0x0600242B RID: 9259 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600242B")] [Address(RVA = "0x2E065A0", Offset = "0x2E053A0", VA = "0x182E065A0", Slot = "16")] protected virtual void Dispose(bool disposing) { } /// Resets the state of the object. // Token: 0x0600242C RID: 9260 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600242C")] [Address(RVA = "0x2E06AF0", Offset = "0x2E058F0", VA = "0x182E06AF0", Slot = "17")] [ComVisible(false)] public virtual void Reset() { } // Token: 0x04001483 RID: 5251 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4001483")] private X509CertificateImpl impl; // Token: 0x04001484 RID: 5252 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4001484")] private bool hideDates; // Token: 0x04001485 RID: 5253 [global::Cpp2IlInjected.FieldOffset(Offset = "0x20")] [Token(Token = "0x4001485")] private string issuer_name; // Token: 0x04001486 RID: 5254 [global::Cpp2IlInjected.FieldOffset(Offset = "0x28")] [Token(Token = "0x4001486")] private string subject_name; } }