SqliteCertificateDatabase Class

An X.509 certificate database built on SQLite.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public class SqliteCertificateDatabase : SqlCertificateDatabase
Inheritance
Object    X509CertificateDatabase    SqlCertificateDatabase    SqliteCertificateDatabase

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.

Constructors

SqliteCertificateDatabase(DbConnection, String) Initialize a new instance of the SqliteCertificateDatabase class.
SqliteCertificateDatabase(String, String) Initialize a new instance of the SqliteCertificateDatabase class.
SqliteCertificateDatabase(DbConnection, String, SecureRandom) Initialize a new instance of the SqliteCertificateDatabase class.
SqliteCertificateDatabase(String, String, SecureRandom) Initialize a new instance of the SqliteCertificateDatabase class.

Properties

CertificatesTable Get the X.509 certificate table definition.
(Inherited from SqlCertificateDatabase)
CrlsTable Get the X.509 certificate revocation lists (CRLs) table definition.
(Inherited from SqlCertificateDatabase)
EncryptionAlgorithm Gets or sets the algorithm used for encrypting the private keys.
(Inherited from X509CertificateDatabase)
MinIterations Gets or sets the minimum iterations.
(Inherited from X509CertificateDatabase)
RandomNumberGenerator Get the secure pseudo-random number generator used when encrypting private keys.
(Inherited from X509CertificateDatabase)
SaltSize Gets or sets the size of the salt.
(Inherited from X509CertificateDatabase)

Methods

Add(X509CertificateRecord) Add the specified certificate record.
(Inherited from X509CertificateDatabase)
Add(X509CrlRecord) Add the specified CRL record.
(Inherited from X509CertificateDatabase)
AddTableColumn Adds a column to a table.
(Overrides SqlCertificateDatabaseAddTableColumn(DataTable, DataColumn))
CreateCommand Create a new database command.
(Inherited from X509CertificateDatabase)
CreateIndex Creates an index for faster table lookups.
(Inherited from SqlCertificateDatabase)
CreateParameterName Create a parameter name for use in SQL database queries.
(Inherited from SqlCertificateDatabase)
CreateTable Create a table.
(Overrides SqlCertificateDatabaseCreateTable(DataTable))
Dispose Releases all resource used by the X509CertificateDatabase object.
(Inherited from X509CertificateDatabase)
Dispose(Boolean) Releases the unmanaged resources used by the SqlCertificateDatabase and optionally releases the managed resources.
(Inherited from SqlCertificateDatabase)
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
ExecuteNonQuery Execute a non-query database command.
(Inherited from X509CertificateDatabase)
ExecuteReader Execute a database command.
(Inherited from X509CertificateDatabase)
ExecuteWithinTransaction Execute an action within a database transaction.
(Inherited from X509CertificateDatabase)
Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Find(X509Certificate, X509CertificateRecordFields) Find the specified certificate.
(Inherited from X509CertificateDatabase)
Find(X509Crl, X509CrlRecordFields) Finds the specified certificate revocation list.
(Inherited from X509CertificateDatabase)
Find(X509Name, X509CrlRecordFields) Finds the CRL records for the specified issuer.
(Inherited from X509CertificateDatabase)
Find(ISelectorX509Certificate, Boolean, X509CertificateRecordFields) Finds the certificate records matching the specified selector.
(Inherited from X509CertificateDatabase)
Find(MailboxAddress, DateTime, Boolean, X509CertificateRecordFields) Finds the certificate records for the specified mailbox.
(Inherited from X509CertificateDatabase)
FindCertificates Finds the certificates matching the specified selector.
(Inherited from X509CertificateDatabase)
FindPrivateKeys Finds the private keys matching the specified selector.
(Inherited from X509CertificateDatabase)
GetCrlStore Gets a certificate revocation list store.
(Inherited from X509CertificateDatabase)
GetDeleteCommand(X509CertificateRecord) Gets the database command to delete the specified certificate record.
(Inherited from SqlCertificateDatabase)
GetDeleteCommand(X509CrlRecord) Gets the database command to delete the specified CRL record.
(Inherited from SqlCertificateDatabase)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetInsertCommand(X509CertificateRecord) Gets the database command to insert the specified certificate record.
(Inherited from SqlCertificateDatabase)
GetInsertCommand(X509CrlRecord) Gets the database command to insert the specified CRL record.
(Inherited from SqlCertificateDatabase)
GetSelectAllCrlsCommand Gets the database command to select all CRLs in the table.
(Inherited from SqlCertificateDatabase)
GetSelectCommand(X509Certificate, X509CertificateRecordFields) Gets the database command to select the record matching the specified certificate.
(Inherited from SqlCertificateDatabase)
GetSelectCommand(X509Crl, X509CrlRecordFields) Gets the database command to select the record for the specified CRL.
(Inherited from SqlCertificateDatabase)
GetSelectCommand(X509Name, X509CrlRecordFields) Gets the database command to select the CRL records matching the specified issuer.
(Inherited from SqlCertificateDatabase)
GetSelectCommand(ISelectorX509Certificate, Boolean, Boolean, X509CertificateRecordFields) Get the database command to select the requested certificate records.
(Inherited from SqlCertificateDatabase)
GetSelectCommand(MailboxAddress, DateTime, Boolean, X509CertificateRecordFields) Get the database command to select the certificate records for the specified mailbox.
(Inherited from SqlCertificateDatabase)
GetTableColumns Gets the columns for the specified table.
(Overrides SqlCertificateDatabaseGetTableColumns(String))
GetType Gets the Type of the current instance.
(Inherited from Object)
GetUpdateCommand Gets the database command to update the specified record.
(Inherited from SqlCertificateDatabase)
GetValue(X509CertificateRecord, String) Gets the value for the specified column.
(Inherited from X509CertificateDatabase)
LimitToOne Limit the query results to a single record.
(Inherited from SqlCertificateDatabase)
MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
Remove(X509CertificateRecord) Remove the specified certificate record.
(Inherited from X509CertificateDatabase)
Remove(X509CrlRecord) Remove the specified CRL record.
(Inherited from X509CertificateDatabase)
RemoveIndex Removes an index that is no longer needed.
(Inherited from SqlCertificateDatabase)
ToString Returns a string that represents the current object.
(Inherited from Object)
Update Update the specified certificate record.
(Inherited from X509CertificateDatabase)

See Also