Method | Description | |
---|---|---|
Add ( |
Add the specified certificate record. Adds the specified certificate record to the database. |
|
Add ( |
Add the specified CRL record. Adds the specified CRL record to the database. |
|
Dispose ( ) : void |
Releases all resource used by the MimeKit.Cryptography.X509CertificateDatabase object. Call Dispose() when you are finished using the MimeKit.Cryptography.X509CertificateDatabase. The Dispose() method leaves the MimeKit.Cryptography.X509CertificateDatabase in an unusable state. After calling Dispose(), you must release all references to the MimeKit.Cryptography.X509CertificateDatabase so the garbage collector can reclaim the memory that the MimeKit.Cryptography.X509CertificateDatabase was occupying. |
|
Find ( IX509Selector selector, bool trustedOnly, X509CertificateRecordFields fields ) : IEnumerable |
Finds the certificate records matching the specified selector. Searches the database for certificate records matching the selector, returning all of the matching records populated with the desired fields. |
|
Find ( MailboxAddress mailbox, System.DateTime now, bool requirePrivateKey, X509CertificateRecordFields fields ) : IEnumerable |
Finds the certificate records for the specified mailbox. Searches the database for certificates matching the specified mailbox that are valid for the date and time specified, returning all matching records populated with the desired fields. |
|
Find ( Org.BouncyCastle.Asn1.X509.X509Name issuer, X509CrlRecordFields fields ) : IEnumerable |
Finds the CRL records for the specified issuer. Searches the database for CRL records matching the specified issuer, returning all matching records populated with the desired fields. |
|
Find ( |
Find the specified certificate. Searches the database for the specified certificate, returning the matching record with the desired fields populated. |
|
Find ( |
Finds the specified certificate revocation list. Searches the database for the specified CRL, returning the matching record with the desired fields populated. |
|
FindCertificates ( IX509Selector selector ) : IEnumerable |
Finds the certificates matching the specified selector. Searches the database for certificates matching the selector, returning all matching certificates. |
|
FindPrivateKeys ( IX509Selector selector ) : IEnumerable |
Finds the private keys matching the specified selector. Searches the database for certificate records matching the selector, returning the private keys for each matching record. |
|
GetCrlStore ( ) : IX509Store |
Gets a certificate revocation list store. Gets a certificate revocation list store. |
|
Remove ( |
Remove the specified certificate record. Removes the specified certificate record from the database. |
|
Remove ( |
Remove the specified CRL record. Removes the specified CRL record from the database. |
|
Update ( |
Update the specified certificate record. Updates the specified fields of the record in the database. |
|
Update ( |
Update the specified CRL record. Updates the specified fields of the record in the database. |
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases the unmanaged resources used by the X509CertificateDatabase and optionally releases the managed resources. Releases the unmanaged resources used by the X509CertificateDatabase and optionally releases the managed resources. |
|
GetColumnNames ( X509CertificateRecordFields fields ) : string[] |
Gets the column names for the specified fields. Gets the column names for the specified fields. |
|
GetColumnNames ( X509CrlRecordFields fields ) : string[] |
Gets the column names for the specified fields. Gets the column names for the specified fields. |
|
GetDeleteCommand ( |
Gets the database command to delete the specified certificate record. Gets the database command to delete the specified certificate record. |
|
GetDeleteCommand ( |
Gets the database command to delete the specified CRL record. Gets the database command to delete the specified CRL record. |
|
GetInsertCommand ( |
Gets the database command to insert the specified certificate record. Gets the database command to insert the specified certificate record. |
|
GetInsertCommand ( |
Gets the database command to insert the specified CRL record. Gets the database command to insert the specified CRL record. |
|
GetSelectAllCrlsCommand ( ) : DbCommand |
Gets the database command to select all CRLs in the table. Gets the database command to select all CRLs in the table. |
|
GetSelectCommand ( IX509Selector selector, bool trustedOnly, bool requirePrivateKey, X509CertificateRecordFields fields ) : DbCommand |
Gets the database command to select certificate records matching the specified selector. Gets the database command to select certificate records matching the specified selector. |
|
GetSelectCommand ( MailboxAddress mailbox, System.DateTime now, bool requirePrivateKey, X509CertificateRecordFields fields ) : DbCommand |
Gets the database command to select the certificate records for the specified mailbox. Gets the database command to select the certificate records for the specified mailbox. |
|
GetSelectCommand ( |
Gets the database command to select the record matching the specified certificate. Gets the database command to select the record matching the specified certificate. |
|
GetSelectCommand ( |
Gets the database command to select the record for the specified CRL. Gets the database command to select the record for the specified CRL. |
|
GetSelectCommand ( Org.BouncyCastle.Asn1.X509.X509Name issuer, X509CrlRecordFields fields ) : DbCommand |
Gets the database command to select the CRL records matching the specified issuer. Gets the database command to select the CRL records matching the specified issuer. |
|
GetUpdateCommand ( |
Gets the database command to update the specified record. Gets the database command to update the specified record. |
|
GetUpdateCommand ( |
Gets the database command to update the specified CRL record. Gets the database command to update the specified CRL record. |
|
GetValue ( |
Gets the value for the specified column. Gets the value for the specified column. |
|
GetValue ( |
Gets the value for the specified column. Gets the value for the specified column. |
|
X509CertificateDatabase ( string password ) : System |
Initializes a new instance of the MimeKit.Cryptography.X509CertificateDatabase class. The password is used to encrypt and decrypt private keys in the database and cannot be null. |
Method | Description | |
---|---|---|
DecodeCertificate ( DbDataReader reader, |
||
DecodeEncryptionAlgorithms ( DbDataReader reader, int column ) : EncryptionAlgorithm[] | ||
DecodePrivateKey ( DbDataReader reader, int column, byte &buffer ) : |
||
DecodeX509Crl ( DbDataReader reader, |
||
DecryptAsymmetricKeyParameter ( byte buffer, int length ) : |
||
EncodeEncryptionAlgorithms ( EncryptionAlgorithm algorithms ) : string | ||
EncodePrivateKey ( |
||
EncryptAsymmetricKeyParameter ( |
||
IX509Store ( IX509Selector selector ) : ICollection |
Gets a collection of matching certificates matching the specified selector. Gets a collection of matching certificates matching the specified selector. |
|
LoadCertificateRecord ( DbDataReader reader, |
||
LoadCrlRecord ( DbDataReader reader, |
||
ReadBinaryBlob ( DbDataReader reader, int column, byte &buffer ) : int |
public Add ( |
||
record | The certificate record. | |
return | void |
public Add ( |
||
record | The CRL record. | |
return | void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
return | void |
public Find ( IX509Selector selector, bool trustedOnly, X509CertificateRecordFields fields ) : IEnumerable |
||
selector | IX509Selector | The match selector or |
trustedOnly | bool | |
fields | X509CertificateRecordFields | The desired fields. |
return | IEnumerable |
public Find ( MailboxAddress mailbox, System.DateTime now, bool requirePrivateKey, X509CertificateRecordFields fields ) : IEnumerable |
||
mailbox | MailboxAddress | The mailbox. |
now | System.DateTime | The date and time. |
requirePrivateKey | bool | |
fields | X509CertificateRecordFields | The desired fields. |
return | IEnumerable |
public Find ( Org.BouncyCastle.Asn1.X509.X509Name issuer, X509CrlRecordFields fields ) : IEnumerable |
||
issuer | Org.BouncyCastle.Asn1.X509.X509Name | The issuer. |
fields | X509CrlRecordFields | The desired fields. |
return | IEnumerable |
public Find ( |
||
certificate | The certificate. | |
fields | X509CertificateRecordFields | The desired fields. |
return |
public Find ( |
||
crl | The certificate revocation list. | |
fields | X509CrlRecordFields | The desired fields. |
return |
public FindCertificates ( IX509Selector selector ) : IEnumerable |
||
selector | IX509Selector | The match selector or |
return | IEnumerable |
public FindPrivateKeys ( IX509Selector selector ) : IEnumerable |
||
selector | IX509Selector | The match selector or |
return | IEnumerable |
protected static GetColumnNames ( X509CertificateRecordFields fields ) : string[] | ||
fields | X509CertificateRecordFields | The fields. |
return | string[] |
protected static GetColumnNames ( X509CrlRecordFields fields ) : string[] | ||
fields | X509CrlRecordFields | The fields. |
return | string[] |
protected abstract GetDeleteCommand ( |
||
record | The certificate record. | |
return | DbCommand |
protected abstract GetDeleteCommand ( |
||
record | The record. | |
return | DbCommand |
protected abstract GetInsertCommand ( |
||
record | The certificate record. | |
return | DbCommand |
protected abstract GetInsertCommand ( |
||
record | The CRL record. | |
return | DbCommand |
protected abstract GetSelectAllCrlsCommand ( ) : DbCommand | ||
return | DbCommand |
protected abstract GetSelectCommand ( IX509Selector selector, bool trustedOnly, bool requirePrivateKey, X509CertificateRecordFields fields ) : DbCommand | ||
selector | IX509Selector | Selector. |
trustedOnly | bool | |
requirePrivateKey | bool | |
fields | X509CertificateRecordFields | The fields to return. |
return | DbCommand |
protected abstract GetSelectCommand ( MailboxAddress mailbox, System.DateTime now, bool requirePrivateKey, X509CertificateRecordFields fields ) : DbCommand | ||
mailbox | MailboxAddress | The mailbox. |
now | System.DateTime | The date and time for which the certificate should be valid. |
requirePrivateKey | bool | |
fields | X509CertificateRecordFields | The fields to return. |
return | DbCommand |
protected abstract GetSelectCommand ( |
||
certificate | The certificate. | |
fields | X509CertificateRecordFields | The fields to return. |
return | DbCommand |
protected abstract GetSelectCommand ( |
||
crl | The X.509 CRL. | |
fields | X509CrlRecordFields | The fields to return. |
return | DbCommand |
protected abstract GetSelectCommand ( Org.BouncyCastle.Asn1.X509.X509Name issuer, X509CrlRecordFields fields ) : DbCommand | ||
issuer | Org.BouncyCastle.Asn1.X509.X509Name | The issuer. |
fields | X509CrlRecordFields | The fields to return. |
return | DbCommand |
protected abstract GetUpdateCommand ( |
||
record | The certificate record. | |
fields | X509CertificateRecordFields | The fields to update. |
return | DbCommand |
protected abstract GetUpdateCommand ( |
||
record | The CRL record. | |
return | DbCommand |
protected GetValue ( |
||
record | The certificate record. | |
columnName | string | The column name. |
return | object |
protected static GetValue ( |
||
record | The CRL record. | |
columnName | string | The column name. |
return | object |
public Remove ( |
||
record | The certificate record. | |
return | void |
public Remove ( |
||
record | The CRL record. | |
return | void |
public Update ( |
||
record | The certificate record. | |
fields | X509CertificateRecordFields | The fields to update. |
return | void |
public Update ( |
||
record | The CRL record. | |
return | void |
protected X509CertificateDatabase ( string password ) : System | ||
password | string | The password used for encrypting and decrypting the private keys. |
return | System |