Click or drag to resize
MimeKit

SecureMimeContextVerify Method (Stream, DigitalSignatureCollection, CancellationToken)

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

Namespace:  MimeKit.Cryptography
Assembly:  MimeKit (in MimeKit.dll) Version: 3.0.0
Syntax
C#
public abstract Stream Verify(
	Stream signedData,
	out DigitalSignatureCollection signatures,
	CancellationToken cancellationToken = default
)

Parameters

signedData
Type: System.IOStream
The signed data.
signatures
Type: MimeKit.CryptographyDigitalSignatureCollection
The digital signatures.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
The cancellation token.

Return Value

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