X509CertificateDatabase Class

An X.509 certificate database.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public abstract class X509CertificateDatabase : IX509CertificateDatabase, 
	IStore<X509Certificate>, IDisposable
Inheritance
Object    X509CertificateDatabase
Derived
Implements
IX509CertificateDatabase, IStoreX509Certificate, IDisposable

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.

Constructors

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

Properties

EncryptionAlgorithm Gets or sets the algorithm used for encrypting the private keys.
MinIterations Gets or sets the minimum iterations.
RandomNumberGenerator Get the secure pseudo-random number generator used when encrypting private keys.
SaltSize Gets or sets the size of the salt.

Methods

Add(X509CertificateRecord) Add the specified certificate record.
Add(X509CrlRecord) Add the specified CRL record.
CreateCommand Create a new database command.
Dispose Releases all resource used by the X509CertificateDatabase object.
Dispose(Boolean) Releases the unmanaged resources used by the X509CertificateDatabase and optionally releases the managed resources.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
ExecuteNonQuery Execute a non-query database command.
ExecuteReader Execute a database command.
ExecuteWithinTransaction Execute an action within a database transaction.
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.
Find(X509Crl, X509CrlRecordFields) Finds the specified certificate revocation list.
Find(X509Name, X509CrlRecordFields) Finds the CRL records for the specified issuer.
Find(ISelectorX509Certificate, Boolean, X509CertificateRecordFields) Finds the certificate records matching the specified selector.
Find(MailboxAddress, DateTime, Boolean, X509CertificateRecordFields) Finds the certificate records for the specified mailbox.
FindCertificates Finds the certificates matching the specified selector.
FindPrivateKeys Finds the private keys matching the specified selector.
GetColumnNames(X509CertificateRecordFields) Gets the column names for the specified fields.
GetColumnNames(X509CrlRecordFields) Gets the column names for the specified fields.
GetCrlStore Gets a certificate revocation list store.
GetDeleteCommand(X509CertificateRecord) Gets the database command to delete the specified certificate record.
GetDeleteCommand(X509CrlRecord) Gets the database command to delete the specified CRL record.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetInsertCommand(X509CertificateRecord) Gets the database command to insert the specified certificate record.
GetInsertCommand(X509CrlRecord) Gets the database command to insert the specified CRL record.
GetSelectAllCrlsCommand Gets the database command to select all CRLs in the table.
GetSelectCommand(X509Certificate, X509CertificateRecordFields) Gets the database command to select the record matching the specified certificate.
GetSelectCommand(X509Crl, X509CrlRecordFields) Gets the database command to select the record for the specified CRL.
GetSelectCommand(X509Name, X509CrlRecordFields) Gets the database command to select the CRL records matching the specified issuer.
GetSelectCommand(ISelectorX509Certificate, Boolean, Boolean, X509CertificateRecordFields) Gets the database command to select certificate records matching the specified selector.
GetSelectCommand(MailboxAddress, DateTime, Boolean, X509CertificateRecordFields) Gets the database command to select the certificate records for the specified mailbox.
GetType Gets the Type of the current instance.
(Inherited from Object)
GetUpdateCommand Gets the database command to update the specified record.
GetValue(X509CertificateRecord, String) Gets the value for the specified column.
GetValue(X509CrlRecord, String) Gets the value for the specified column.
MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
Remove(X509CertificateRecord) Remove the specified certificate record.
Remove(X509CrlRecord) Remove the specified CRL record.
ToString Returns a string that represents the current object.
(Inherited from Object)
Update Update the specified certificate record.

Fields

CertificatesTableName The name of the database table containing the certificates.
CrlsTableName The name of the database table containing the CRLs.

See Also