Click or drag to resize
MimeKit

DefaultSecureMimeContext(String, SecureRandom) Constructor

Initialize a new instance of the DefaultSecureMimeContext class.

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

Parameters

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

password is null.

-or-

random is null.

NotImplementedException Mono.Data.Sqlite is not available.
UnauthorizedAccessException The user does not have access to read the database at the default location.
IOException An error occurred reading the database at the default location.
Remarks

Allows the program to specify its own password for the default database.

Requires linking with Mono.Data.Sqlite.

See Also