Mime Message Extensions Class
Extension methods for MimeMessage that add convenient S/MIME and PGP/MIME support.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public static class MimeMessageExtensions- Inheritance
- Object MimeMessageExtensions
Remarks
Extension methods for MimeMessage that add convenient S/MIME and PGP/MIME support.
Methods
| Encrypt | Encrypt the message to the sender and all of the recipients using the specified cryptography context. |
| EncryptAsync | Asynchronously encrypt the message to the sender and all of the recipients using the specified cryptography context. |
| Sign(MimeMessage, CryptographyContext, CancellationToken) | Sign the message using the specified cryptography context and the SHA-256 digest algorithm. |
| Sign(MimeMessage, CryptographyContext, DigestAlgorithm, CancellationToken) | Sign the message using the specified cryptography context and digest algorithm. |
| SignAndEncrypt(MimeMessage, CryptographyContext, CancellationToken) | Sign and encrypt the message to the sender and all of the recipients using the specified cryptography context and the SHA-256 digest algorithm. |
| SignAndEncrypt(MimeMessage, CryptographyContext, DigestAlgorithm, CancellationToken) | Sign and encrypt the message to the sender and all of the recipients using the specified cryptography context and the specified digest algorithm. |
| SignAndEncryptAsync(MimeMessage, CryptographyContext, CancellationToken) | Asynchronously sign and encrypt the message to the sender and all of the recipients using the specified cryptography context and the SHA-256 digest algorithm. |
| SignAndEncryptAsync(MimeMessage, CryptographyContext, DigestAlgorithm, CancellationToken) | Asynchronously sign and encrypt the message to the sender and all of the recipients using the specified cryptography context and the specified digest algorithm. |
| SignAsync(MimeMessage, CryptographyContext, CancellationToken) | Asynchronously sign the message using the specified cryptography context and the SHA-256 digest algorithm. |
| SignAsync(MimeMessage, CryptographyContext, DigestAlgorithm, CancellationToken) | Asynchronously sign the message using the specified cryptography context and digest algorithm. |