Click or drag to resize
MimeKit

X509CertificateDatabase Class

An X.509 certificate database.
Inheritance Hierarchy
SystemObject
  MimeKit.CryptographyX509CertificateDatabase
    MimeKit.CryptographySqlCertificateDatabase

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public abstract class X509CertificateDatabase : IX509CertificateDatabase, 
	IStore<X509Certificate>, IDisposable

The X509CertificateDatabase type exposes the following members.

Constructors
 NameDescription
Protected methodX509CertificateDatabase(DbConnection, String) Initialize a new instance of the X509CertificateDatabase class.
Protected methodX509CertificateDatabase(DbConnection, String, SecureRandom) Initialize a new instance of the X509CertificateDatabase class.
Top
Properties
 NameDescription
Protected propertyEncryptionAlgorithm Gets or sets the algorithm used for encrypting the private keys.
Protected propertyMinIterations Gets or sets the minimum iterations.
Protected propertyRandomNumberGenerator Get the secure pseudo-random number generator used when encrypting private keys.
Protected propertySaltSize Gets or sets the size of the salt.
Top
Methods
 NameDescription
Public methodAdd(X509CertificateRecord) Add the specified certificate record.
Public methodAdd(X509CrlRecord) Add the specified CRL record.
Public methodDispose Releases all resource used by the X509CertificateDatabase object.
Protected methodDispose(Boolean) Releases the unmanaged resources used by the X509CertificateDatabase and optionally releases the managed resources.
Public methodEquals
(Inherited from Object)
Protected methodFinalize Releases unmanaged resources and performs other cleanup operations before the X509CertificateDatabase is reclaimed by garbage collection.
(Overrides ObjectFinalize)
Public methodFind(X509Certificate, X509CertificateRecordFields) Find the specified certificate.
Public methodFind(X509Crl, X509CrlRecordFields) Finds the specified certificate revocation list.
Public methodFind(X509Name, X509CrlRecordFields) Finds the CRL records for the specified issuer.
Public methodFind(ISelectorX509Certificate, Boolean, X509CertificateRecordFields) Finds the certificate records matching the specified selector.
Public methodFind(MailboxAddress, DateTime, Boolean, X509CertificateRecordFields) Finds the certificate records for the specified mailbox.
Public methodFindCertificates Finds the certificates matching the specified selector.
Public methodFindPrivateKeys Finds the private keys matching the specified selector.
Protected methodStatic memberGetColumnNames(X509CertificateRecordFields) Gets the column names for the specified fields.
Protected methodStatic memberGetColumnNames(X509CrlRecordFields) Gets the column names for the specified fields.
Public methodGetCrlStore Gets a certificate revocation list store.
Protected methodGetDeleteCommand(DbConnection, X509CertificateRecord) Gets the database command to delete the specified certificate record.
Protected methodGetDeleteCommand(DbConnection, X509CrlRecord) Gets the database command to delete the specified CRL record.
Public methodGetHashCode
(Inherited from Object)
Protected methodGetInsertCommand(DbConnection, X509CertificateRecord) Gets the database command to insert the specified certificate record.
Protected methodGetInsertCommand(DbConnection, X509CrlRecord) Gets the database command to insert the specified CRL record.
Protected methodGetSelectAllCrlsCommand Gets the database command to select all CRLs in the table.
Protected methodGetSelectCommand(DbConnection, X509Name, X509CrlRecordFields) Gets the database command to select the CRL records matching the specified issuer.
Protected methodGetSelectCommand(DbConnection, X509Certificate, X509CertificateRecordFields) Gets the database command to select the record matching the specified certificate.
Protected methodGetSelectCommand(DbConnection, X509Crl, X509CrlRecordFields) Gets the database command to select the record for the specified CRL.
Protected methodGetSelectCommand(DbConnection, MailboxAddress, DateTime, Boolean, X509CertificateRecordFields) Gets the database command to select the certificate records for the specified mailbox.
Protected methodGetSelectCommand(DbConnection, ISelectorX509Certificate, Boolean, Boolean, X509CertificateRecordFields) Gets the database command to select certificate records matching the specified selector.
Public methodGetType
(Inherited from Object)
Protected methodGetUpdateCommand(DbConnection, X509CrlRecord) Gets the database command to update the specified CRL record.
Protected methodGetUpdateCommand(DbConnection, X509CertificateRecord, X509CertificateRecordFields) Gets the database command to update the specified record.
Protected methodGetValue(X509CertificateRecord, String) Gets the value for the specified column.
Protected methodStatic memberGetValue(X509CrlRecord, String) Gets the value for the specified column.
Protected methodMemberwiseClone
(Inherited from Object)
Public methodRemove(X509CertificateRecord) Remove the specified certificate record.
Public methodRemove(X509CrlRecord) Remove the specified CRL record.
Public methodToString
(Inherited from Object)
Public methodUpdate(X509CrlRecord) Update the specified CRL record.
Public methodUpdate(X509CertificateRecord, X509CertificateRecordFields) Update the specified certificate record.
Top
Remarks
An X.509 certificate database is used for storing certificates, metadata related to the certificates (such as encryption algorithms supported by the associated client), certificate revocation lists (CRLs), and private keys.
See Also