Click or drag to resize
MimeKit

WindowsSecureMimeContextVerify(Stream, DigitalSignatureCollection, CancellationToken) Method

Verify the digital signatures of the specified signed data and extract the original content.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
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

Stream
The extracted content stream.
Exceptions
ExceptionCondition
ArgumentNullExceptionsignedData is null.
OperationCanceledException The operation was cancelled via the cancellation token.
CryptographicException An error occurred in the cryptographic message syntax subsystem.
Remarks
Verifies the digital signatures of the specified signed data and extracts the original content.
See Also