Windows Secure Mime ContextVerify(Stream, Digital Signature Collection, Cancellation Token) Method
Verify the digital signatures of the specified signed data and extract the original content.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
The extracted content stream.
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public override Stream Verify(
Stream signedData,
out DigitalSignatureCollection signatures,
CancellationToken cancellationToken = default
)Parameters
- signedData Stream
- The signed data.
- signatures DigitalSignatureCollection
- The digital signatures.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
StreamThe extracted content stream.
Implements
ISecureMimeContextVerify(Stream, DigitalSignatureCollection, CancellationToken)Remarks
Verifies the digital signatures of the specified signed data and extracts the original content.
Exceptions
| ArgumentNullException | signedData is . |
| OperationCanceledException | The operation was cancelled via the cancellation token. |
| CryptographicException | An error occurred in the cryptographic message syntax subsystem. |