 | DefaultSecureMimeContextImportAsync(Stream, Boolean, CancellationToken) Method |
Asynchronously import a DER-encoded certificate stream.
Namespace: MimeKit.CryptographyAssembly: MimeKit (in MimeKit.dll) Version: 4.10.0
Syntaxpublic Task ImportAsync(
Stream stream,
bool trusted,
CancellationToken cancellationToken = default
)
Parameters
- stream Stream
- The raw certificate(s).
- trusted Boolean
- if the certificates are trusted; othewrwise, .
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskAn asynchronous task context.
Exceptions
Remarks
Asynchronously imports the certificate(s).
See Also