Click or drag to resize
MimeKit

WindowsSecureMimeContextVerifyAsync Method

Asynchronously verify the specified content using the detached signature data.

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

Parameters

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

Return Value

TaskDigitalSignatureCollection
A list of the digital signatures.

Implements

ICryptographyContextVerifyAsync(Stream, Stream, CancellationToken)
Exceptions
ExceptionCondition
ArgumentNullException

content is null.

-or-

signatureData is null.

OperationCanceledException The operation was cancelled via the cancellation token.
CryptographicException An error occurred in the cryptographic message syntax subsystem.
Remarks
Verifies the specified content using the detached signature data.
See Also