X509CertificateStore Class

A store for X.509 certificates and keys.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public class X509CertificateStore : IStore<X509Certificate>
Inheritance
Object    X509CertificateStore
Implements
IStoreX509Certificate

Remarks

A store for X.509 certificates and keys.

Constructors

X509CertificateStore Initialize a new instance of the X509CertificateStore class.

Properties

Certificates Enumerates the certificates currently in the store.

Methods

Add Adds the specified certificate to the store.
AddRange Adds the specified range of certificates to the store.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Export(Stream) Exports the certificates to an unencrypted stream.
Export(String) Exports the certificates to an unencrypted file.
Export(Stream, String) Exports the specified stream and password to a pkcs12 encrypted file.
Export(String, String) Exports the specified stream and password to a pkcs12 encrypted file.
Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetMatches Gets an enumerator of matching X.509 certificates based on the specified selector.
GetPrivateKey Gets the private key for the specified certificate.
GetType Gets the Type of the current instance.
(Inherited from Object)
Import(Byte) Imports the certificate(s) from the specified byte array.
Import(Stream) Imports the certificate(s) from the specified stream.
Import(String) Imports the certificate(s) from the specified file.
Import(Byte, String) Imports certificates and private keys from the specified byte array.
Import(Stream, String) Imports certificates and private keys from the specified stream.
Import(String, String) Imports certificates and private keys from the specified file.
MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
Remove Removes the specified certificate from the store.
RemoveRange Removes the specified range of certificates from the store.
ToString Returns a string that represents the current object.
(Inherited from Object)

See Also