Click or drag to resize
MimeKit

OpenPgpContextVerify Method

Verify the specified content using the detached signatureData.

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

DigitalSignatureCollection
A list of digital signatures.
Exceptions
ExceptionCondition
ArgumentNullException

content is null.

-or-

signatureData is null.

FormatExceptionsignatureData does not contain valid PGP signature data.
OperationCanceledException The operation was canceled via the cancellation token.
Remarks

Verifies the specified content using the detached signatureData.

If any of the signatures were made with an unrecognized key and AutoKeyRetrieve is enabled, an attempt will be made to retrieve said key(s). The cancellationToken can be used to cancel key retrieval.

See Also