X509CertificateDatabase(DbConnection, String, SecureRandom) Constructor

Initialize a new instance of the X509CertificateDatabase class.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
protected X509CertificateDatabase(
	DbConnection connection,
	string password,
	SecureRandom random
)

Parameters

connection  DbConnection
The database connection.
password  String
The password used for encrypting and decrypting the private keys.
random  SecureRandom
The secure pseudo-random number generator.

Remarks

The password is used to encrypt and decrypt private keys in the database and cannot be null.

Exceptions

ArgumentNullException

connection is .

-or-

password is .

-or-

random is .

See Also