Mime |
public Task SignAsync( CryptographyContext ctx, DigestAlgorithm digestAlgo, CancellationToken cancellationToken = default )
Exception | Condition |
---|---|
ArgumentNullException | ctx is null. |
InvalidOperationException | The Body has not been set. -or- A sender has not been specified. |
ArgumentOutOfRangeException | The digestAlgo was out of range. |
NotSupportedException | The digestAlgo is not supported. |
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. |