Click or drag to resize
MimeKit

BouncyCastleSecureMimeContextVerify(Stream, MimeEntity, 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.7.1
Syntax
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)
Exceptions
ExceptionCondition
ArgumentNullExceptionsignedData is null.
FormatException The extracted content could not be parsed as a MIME entity.
CmsException An error occurred in the cryptographic message syntax subsystem.
OperationCanceledException The operation was canceled via the cancellation token.
Remarks
Verifies the digital signatures of the specified signed data and extracts the original content.
See Also