Open |
public override 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. |
PrivateKeyNotFoundException | A signing key could not be found for signer. |
OperationCanceledException | The user chose to cancel the password prompt. -or- The operation was canceled via the cancellation token. |
UnauthorizedAccessException | 3 bad attempts were made to unlock the secret key. |