Click or drag to resize
MimeKit

ApplicationPkcs7MimeVerify Method (MimeEntity, CancellationToken)

Verifies the signed-data and returns the unencapsulated MimeEntity.

Namespace:  MimeKit.Cryptography
Assembly:  MimeKit (in MimeKit.dll) Version: 2.14.0
Syntax
C#
public DigitalSignatureCollection Verify(
	out MimeEntity entity,
	CancellationToken cancellationToken = default
)

Parameters

entity
Type: MimeKitMimeEntity
The unencapsulated entity.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
The cancellation token.

Return Value

Type: DigitalSignatureCollection
The list of digital signatures.
Exceptions
ExceptionCondition
InvalidOperationException The "smime-type" parameter on the Content-Type header is not "signed-data".
OperationCanceledException The operation was cancelled via the cancellation token.
CmsException An error occurred in the cryptographic message syntax subsystem.
Remarks
Verifies the signed-data using the default SecureMimeContext and returns the unencapsulated MimeEntity.
See Also