Multipart SignedVerify Async(Cancellation Token) Method
Asynchronously verify the multipart/signed part.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
A signer info collection.
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public Task<DigitalSignatureCollection> VerifyAsync(
CancellationToken cancellationToken = default
)Parameters
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskDigitalSignatureCollectionA signer info collection.
Implements
IMultipartSignedVerifyAsync(CancellationToken)Remarks
Verifies the multipart/signed part using the default cryptography context.
Exceptions
| FormatException |
The protocol parameter was not specified. -or- The multipart is malformed in some way. |
| NotSupportedException | A cryptography context suitable for verifying the signature could not be found. |
| ObjectDisposedException | The MultipartSigned has been disposed. |
| OperationCanceledException | The operation was cancelled via the cancellation token. |
| CmsException | An error occurred in the cryptographic message syntax subsystem. |