Windows Secure Mime ContextVerify(Stream, Stream, Cancellation Token) Method
Verify the specified content using the detached signature data.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
A list of the digital signatures.
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public override DigitalSignatureCollection Verify(
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
DigitalSignatureCollectionA list of the digital signatures.
Implements
ICryptographyContextVerify(Stream, Stream, CancellationToken)Remarks
Verifies the specified content using the detached signature data.
Exceptions
| ArgumentNullException |
content is . -or- signatureData is . |
| OperationCanceledException | The operation was cancelled via the cancellation token. |
| CryptographicException | An error occurred in the cryptographic message syntax subsystem. |