Mime |
public void Sign( CryptographyContext ctx, CancellationToken cancellationToken = default )
Exception | Condition |
---|---|
ArgumentNullException | ctx is null. |
InvalidOperationException | The Body has not been set. -or- A sender has not been specified. |
OperationCanceledException | The operation was canceled via the cancellation token. |
CertificateNotFoundException | A signing certificate could not be found for the sender. |
PrivateKeyNotFoundException | The private key could not be found for the sender. |