Multipart |
public static Task<MultipartSigned> CreateAsync( PgpSecretKey signer, DigestAlgorithm digestAlgo, MimeEntity entity, CancellationToken cancellationToken = default )
| Exception | Condition |
|---|---|
| ArgumentNullException | signer is . -or- entity is . |
| ArgumentException | signer cannot be used for signing. |
| ArgumentOutOfRangeException | The digestAlgo was out of range. |
| NotSupportedException | A cryptography context suitable for signing could not be found. -or- The digestAlgo is not supported. |
| ObjectDisposedException | entity has been disposed. |
| OperationCanceledException | The operation was canceled via the cancellation token. |
| PgpException | An error occurred in the OpenPGP subsystem. |