Click or drag to resize
MimeKit

SqliteCertificateDatabase(String, String, SecureRandom) Constructor

Initialize a new instance of the SqliteCertificateDatabase class.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public SqliteCertificateDatabase(
	string fileName,
	string password,
	SecureRandom random
)

Parameters

fileName  String
The file name.
password  String
The password used for encrypting and decrypting the private keys.
random  SecureRandom
The secure pseudo-random number generator.
Exceptions
ExceptionCondition
ArgumentNullException

fileName is null.

-or-

password is null.

-or-

random is null.

ArgumentException The specified file path is empty.
UnauthorizedAccessException The user does not have access to read the specified file.
IOException An error occurred reading the file.
Remarks

Creates a new SqliteCertificateDatabase and opens a connection to the SQLite database at the specified path using the Mono.Data.Sqlite binding to the native SQLite library.

If Mono.Data.Sqlite is not available or if an alternative binding to the native SQLite library is preferred, then consider using SqlCertificateDatabase(DbConnection, String, SecureRandom) instead.

See Also