DefaultSecureMimeContext(String, String, SecureRandom) Constructor

Initialize a new instance of the DefaultSecureMimeContext class.

Definition

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

Parameters

fileName  String
The path to the SQLite database.
password  String
The password used for encrypting and decrypting the private keys.
random  SecureRandom
A secure pseudo-random number generator.

Remarks

Allows the program to specify its own location for the SQLite database. If the file does not exist, it will be created and the necessary tables and indexes will be constructed.

Requires linking with Mono.Data.Sqlite.

Exceptions

ArgumentNullException

fileName is .

-or-

password is .

-or-

random is .

ArgumentException The specified file path is empty.
NotSupportedException Mono.Data.Sqlite is not available.
UnauthorizedAccessException The user does not have access to read the specified file.
IOException An error occurred reading the file.

See Also