IApplication Pkcs 7MimeVerify(Mime Entity, Cancellation Token) Method
Verifies the signed-data and returns the unencapsulated MimeEntity.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
The list of digital signatures.
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
DigitalSignatureCollection Verify(
out MimeEntity entity,
CancellationToken cancellationToken = default
)Parameters
- entity MimeEntity
- The unencapsulated entity.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
DigitalSignatureCollectionThe list of digital signatures.
Remarks
Verifies the signed-data using the default SecureMimeContext and returns the
unencapsulated MimeEntity.
Exceptions
| InvalidOperationException | The "smime-type" parameter on the Content-Type header is not "signed-data". |
| ObjectDisposedException | The IApplicationPkcs7Mime has been disposed. |
| OperationCanceledException | The operation was canceled via the cancellation token. |
| CmsException | An error occurred in the cryptographic message syntax subsystem. |