Click or drag to resize
MimeKit

SqlCertificateDatabase Class

An abstract X.509 certificate database built on generic SQL storage.
Inheritance Hierarchy

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public abstract class SqlCertificateDatabase : X509CertificateDatabase

The SqlCertificateDatabase type exposes the following members.

Constructors
 NameDescription
Protected methodSqlCertificateDatabase(DbConnection, String) Initialize a new instance of the SqlCertificateDatabase class.
Protected methodSqlCertificateDatabase(DbConnection, String, SecureRandom) Initialize a new instance of the SqlCertificateDatabase class.
Top
Properties
 NameDescription
Protected propertyCertificatesTable Gets the X.509 certificate table definition.
Protected propertyCrlsTable Gets the X.509 certificate revocation lists (CRLs) table definition.
Protected propertyEncryptionAlgorithm Gets or sets the algorithm used for encrypting the private keys.
(Inherited from X509CertificateDatabase)
Protected propertyMinIterations Gets or sets the minimum iterations.
(Inherited from X509CertificateDatabase)
Protected propertyRandomNumberGenerator Get the secure pseudo-random number generator used when encrypting private keys.
(Inherited from X509CertificateDatabase)
Protected propertySaltSize Gets or sets the size of the salt.
(Inherited from X509CertificateDatabase)
Top
Methods
 NameDescription
Public methodAdd(X509CertificateRecord) Add the specified certificate record.
(Inherited from X509CertificateDatabase)
Public methodAdd(X509CrlRecord) Add the specified CRL record.
(Inherited from X509CertificateDatabase)
Protected methodAddTableColumn Adds a column to a table.
Protected methodCreateIndex Creates an index for faster table lookups.
Protected methodStatic memberCreateSelectQuery Creates a SELECT query string builder for the specified fields of an X.509 certificate record.
Protected methodCreateTable Gets the command to create a table.
Public methodDispose Releases all resource used by the X509CertificateDatabase object.
(Inherited from X509CertificateDatabase)
Protected methodDispose(Boolean) Releases the unmanaged resources used by the SqlCertificateDatabase and optionally releases the managed resources.
(Overrides X509CertificateDatabaseDispose(Boolean))
Public methodEquals
(Inherited from Object)
Protected methodFinalize Releases unmanaged resources and performs other cleanup operations before the X509CertificateDatabase is reclaimed by garbage collection.
(Inherited from X509CertificateDatabase)
Public methodFind(X509Certificate, X509CertificateRecordFields) Find the specified certificate.
(Inherited from X509CertificateDatabase)
Public methodFind(X509Crl, X509CrlRecordFields) Finds the specified certificate revocation list.
(Inherited from X509CertificateDatabase)
Public methodFind(X509Name, X509CrlRecordFields) Finds the CRL records for the specified issuer.
(Inherited from X509CertificateDatabase)
Public methodFind(ISelectorX509Certificate, Boolean, X509CertificateRecordFields) Finds the certificate records matching the specified selector.
(Inherited from X509CertificateDatabase)
Public methodFind(MailboxAddress, DateTime, Boolean, X509CertificateRecordFields) Finds the certificate records for the specified mailbox.
(Inherited from X509CertificateDatabase)
Public methodFindCertificates Finds the certificates matching the specified selector.
(Inherited from X509CertificateDatabase)
Public methodFindPrivateKeys Finds the private keys matching the specified selector.
(Inherited from X509CertificateDatabase)
Public methodGetCrlStore Gets a certificate revocation list store.
(Inherited from X509CertificateDatabase)
Protected methodGetDeleteCommand(DbConnection, X509CertificateRecord) Gets the database command to delete the specified certificate record.
(Overrides X509CertificateDatabaseGetDeleteCommand(DbConnection, X509CertificateRecord))
Protected methodGetDeleteCommand(DbConnection, X509CrlRecord) Gets the database command to delete the specified CRL record.
(Overrides X509CertificateDatabaseGetDeleteCommand(DbConnection, X509CrlRecord))
Public methodGetHashCode
(Inherited from Object)
Protected methodStatic memberGetIndexName Gets the name of an index based on the table and columns that it is built against.
Protected methodGetInsertCommand(DbConnection, X509CertificateRecord) Gets the database command to insert the specified certificate record.
(Overrides X509CertificateDatabaseGetInsertCommand(DbConnection, X509CertificateRecord))
Protected methodGetInsertCommand(DbConnection, X509CrlRecord) Gets the database command to insert the specified CRL record.
(Overrides X509CertificateDatabaseGetInsertCommand(DbConnection, X509CrlRecord))
Protected methodGetSelectAllCrlsCommand Gets the database command to select all CRLs in the table.
(Overrides X509CertificateDatabaseGetSelectAllCrlsCommand(DbConnection))
Protected methodGetSelectCommand(DbConnection, X509Name, X509CrlRecordFields) Gets the database command to select the CRL records matching the specified issuer.
(Overrides X509CertificateDatabaseGetSelectCommand(DbConnection, X509Name, X509CrlRecordFields))
Protected methodGetSelectCommand(DbConnection, X509Certificate, X509CertificateRecordFields) Gets the database command to select the record matching the specified certificate.
(Overrides X509CertificateDatabaseGetSelectCommand(DbConnection, X509Certificate, X509CertificateRecordFields))
Protected methodGetSelectCommand(DbConnection, X509Crl, X509CrlRecordFields) Gets the database command to select the record for the specified CRL.
(Overrides X509CertificateDatabaseGetSelectCommand(DbConnection, X509Crl, X509CrlRecordFields))
Protected methodGetSelectCommand(DbConnection, MailboxAddress, DateTime, Boolean, X509CertificateRecordFields) Get the database command to select the certificate records for the specified mailbox.
(Overrides X509CertificateDatabaseGetSelectCommand(DbConnection, MailboxAddress, DateTime, Boolean, X509CertificateRecordFields))
Protected methodGetSelectCommand(DbConnection, ISelectorX509Certificate, Boolean, Boolean, X509CertificateRecordFields) Get the database command to select the requested certificate records.
(Overrides X509CertificateDatabaseGetSelectCommand(DbConnection, ISelectorX509Certificate, Boolean, Boolean, X509CertificateRecordFields))
Protected methodGetTableColumns Gets the columns for the specified table.
Public methodGetType
(Inherited from Object)
Protected methodGetUpdateCommand(DbConnection, X509CrlRecord) Gets the database command to update the specified CRL record.
(Overrides X509CertificateDatabaseGetUpdateCommand(DbConnection, X509CrlRecord))
Protected methodGetUpdateCommand(DbConnection, X509CertificateRecord, X509CertificateRecordFields) Gets the database command to update the specified record.
(Overrides X509CertificateDatabaseGetUpdateCommand(DbConnection, X509CertificateRecord, X509CertificateRecordFields))
Protected methodGetValue(X509CertificateRecord, String) Gets the value for the specified column.
(Inherited from X509CertificateDatabase)
Protected methodMemberwiseClone
(Inherited from Object)
Public methodRemove(X509CertificateRecord) Remove the specified certificate record.
(Inherited from X509CertificateDatabase)
Public methodRemove(X509CrlRecord) Remove the specified CRL record.
(Inherited from X509CertificateDatabase)
Protected methodRemoveIndex Removes an index that is no longer needed.
Public methodToString
(Inherited from Object)
Public methodUpdate(X509CrlRecord) Update the specified CRL record.
(Inherited from X509CertificateDatabase)
Public methodUpdate(X509CertificateRecord, X509CertificateRecordFields) Update the specified certificate record.
(Inherited from X509CertificateDatabase)
Top
Remarks

An X.509 certificate database is used for storing certificates, metdata related to the certificates (such as encryption algorithms supported by the associated client), certificate revocation lists (CRLs), and private keys.

This particular database uses SQLite to store the data.

See Also