Click or drag to resize
MimeKit

ApplicationPkcs7MimeVerify Method (SecureMimeContext, MimeEntity, CancellationToken)

Verify the signed-data and return the unencapsulated MimeEntity.

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

Parameters

ctx
Type: MimeKit.CryptographySecureMimeContext
The S/MIME context to use for verifying the signature.
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
ArgumentNullExceptionctx is null.
InvalidOperationException The "smime-type" parameter on the Content-Type header is not "signed-data".
FormatException The extracted content could not be parsed as a MIME entity.
OperationCanceledException The operation was cancelled via the cancellation token.
CmsException An error occurred in the cryptographic message syntax subsystem.
Remarks
Verifies the signed-data and returns the unencapsulated MimeEntity.
See Also