CryptographyContextVerifyAsync Method

Asynchronously verify the specified content using the detached signatureData.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public abstract Task<DigitalSignatureCollection> VerifyAsync(
	Stream content,
	Stream signatureData,
	CancellationToken cancellationToken = default
)

Parameters

content  Stream
The content.
signatureData  Stream
The signature data.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

TaskDigitalSignatureCollection
A list of digital signatures.

Implements

ICryptographyContextVerifyAsync(Stream, Stream, CancellationToken)

Remarks

Verifies the specified content using the detached signatureData.

Exceptions

ArgumentNullException

content is .

-or-

signatureData is .

OperationCanceledException The operation was canceled via the cancellation token.

See Also