IMultipart SignedVerify(Cryptography Context, Cancellation Token) Method
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#
DigitalSignatureCollection Verify(
CryptographyContext ctx,
CancellationToken cancellationToken = default
)Parameters
- ctx CryptographyContext
- The cryptography context to use for verifying the signature.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
DigitalSignatureCollectionA signer info collection.
Remarks
Verifies the multipart/signed part using the supplied cryptography context.
Exceptions
| ArgumentNullException | ctx is . |
| FormatException | The multipart is malformed in some way. |
| NotSupportedException | ctx does not support verifying the signature part. |
| ObjectDisposedException | The IMultipartSigned has been disposed. |
| OperationCanceledException | The operation was cancelled via the cancellation token. |
| CmsException | An error occurred in the cryptographic message syntax subsystem. |