WindowsSecureMimeContextVerify(Stream, MimeEntity, CancellationToken) 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
C#
public override DigitalSignatureCollection Verify(
	Stream signedData,
	out MimeEntity entity,
	CancellationToken cancellationToken = default
)

Parameters

signedData  Stream
The signed data.
entity  MimeEntity
The extracted MIME entity.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

DigitalSignatureCollection
The list of digital signatures.

Implements

ISecureMimeContextVerify(Stream, MimeEntity, CancellationToken)

Remarks

Verifies the digital signatures of the specified signed data and extracts the original content.

Exceptions

ArgumentNullException signedData is .
FormatException The extracted content could not be parsed as a MIME entity.
OperationCanceledException The operation was cancelled via the cancellation token.
CryptographicException An error occurred in the cryptographic message syntax subsystem.

See Also