Application |
public static ApplicationPkcs7Mime SignAndEncrypt( SecureMimeContext ctx, CmsSigner signer, CmsRecipientCollection recipients, MimeEntity entity, CancellationToken cancellationToken = default )
Exception | Condition |
---|---|
ArgumentNullException | ctx is null. -or- signer is null. -or- recipients is null. -or- entity is null. |
ObjectDisposedException | entity has been disposed. |
OperationCanceledException | The operation was canceled via the cancellation token. |
CmsException | An error occurred in the cryptographic message syntax subsystem. |