Default Secure Mime Context(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
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
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.
Remarks
Allows the program to specify its own password for the default database.
Requires linking with Mono.Data.Sqlite.
Exceptions
| ArgumentNullException |
password is . -or- random is . |
| 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. |