Click or drag to resize
MimeKit

MultipartSignedVerifyAsync(CryptographyContext, CancellationToken) Method

Verify the multipart/signed part.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public Task<DigitalSignatureCollection> VerifyAsync(
	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

TaskDigitalSignatureCollection
A signer info collection.

Implements

IMultipartSignedVerifyAsync(CryptographyContext, CancellationToken)
Exceptions
ExceptionCondition
ArgumentNullExceptionctx is null.
FormatException The multipart is malformed in some way.
NotSupportedExceptionctx does not support verifying the signature part.
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.
Remarks
Verifies the multipart/signed part using the supplied cryptography context.
See Also