Open |
public override DigitalSignatureCollection Verify( Stream content, Stream signatureData, CancellationToken cancellationToken = default )
Exception | Condition |
---|---|
ArgumentNullException | content is null. -or- signatureData is null. |
FormatException | signatureData does not contain valid PGP signature data. |
OperationCanceledException | The operation was canceled via the cancellation token. |
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.