Cryptography |
public abstract MimePart Sign( MailboxAddress signer, DigestAlgorithm digestAlgo, Stream content, CancellationToken cancellationToken = default )
Exception | Condition |
---|---|
ArgumentNullException | signer is null. -or- content is null. |
ArgumentOutOfRangeException | digestAlgo is out of range. |
NotSupportedException | The specified DigestAlgorithm is not supported by this context. |
OperationCanceledException | The operation was canceled via the cancellation token. |
CertificateNotFoundException | A signing certificate could not be found for signer. |