| WindowsSecureMimeContextImportAsync(Stream, String, CancellationToken) Method |
Asynchronously import certificates and keys from a pkcs12-encoded stream.
Namespace: MimeKit.CryptographyAssembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax public override Task ImportAsync(
Stream stream,
string password,
CancellationToken cancellationToken = default
)
Parameters
- stream Stream
- The raw certificate and key data.
- password String
- The password to unlock the stream.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskAn asynchronous task context.
Exceptions Remarks
Asynchronously imports certificates and keys from a pkcs12-encoded stream.
See Also