Open Pgp ContextVerify Async 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
A list of digital signatures.
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public override 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
TaskDigitalSignatureCollectionA list of digital signatures.
Implements
ICryptographyContextVerifyAsync(Stream, Stream, CancellationToken)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.
Exceptions
| ArgumentNullException |
content is . -or- signatureData is . |
| FormatException | signatureData does not contain valid PGP signature data. |
| OperationCanceledException | The operation was canceled via the cancellation token. |