Multipart |
public static Task<MultipartSigned> CreateAsync( CryptographyContext ctx, MailboxAddress signer, DigestAlgorithm digestAlgo, MimeEntity entity, CancellationToken cancellationToken = default )
Exception | Condition |
---|---|
ArgumentNullException | ctx is null. -or- signer is null. -or- entity is null. |
ArgumentOutOfRangeException | The digestAlgo was out of range. |
NotSupportedException | The digestAlgo is not supported. |
ObjectDisposedException | entity has been disposed. |
OperationCanceledException | The operation was canceled via the cancellation token. |
CertificateNotFoundException | A signing certificate could not be found for signer. |
PrivateKeyNotFoundException | The private key could not be found for signer. |
CmsException | An error occurred in the cryptographic message syntax subsystem. |