Class SMimeEncryptor
Encrypts MIME messages with S/MIME (RFC 5751 §3.3). Produces an
application/pkcs7-mime; smime-type=enveloped-data message using AES-CBC
for content encryption and RSA key transport for each recipient.
Inherited Members
Namespace: DRIT.Mail.Rfc.SMime
Assembly: DRIT.Mail.dll
Syntax
public sealed class SMimeEncryptor
Constructors
View SourceSMimeEncryptor(SMimeEncryptionOptions)
Initializes a new instance of the SMimeEncryptor class with the specified options.
Declaration
public SMimeEncryptor(SMimeEncryptionOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| SMimeEncryptionOptions | options | The options controlling the operation. |
Methods
View SourceEncrypt(MimeMessage, params X509CertificateInfo[])
Encrypts the message for one or more recipients. Returns a new
application/pkcs7-mime message.
Declaration
public MimeMessage Encrypt(MimeMessage message, params X509CertificateInfo[] recipients)
Parameters
| Type | Name | Description |
|---|---|---|
| MimeMessage | message | The message to process. |
| X509CertificateInfo[] | recipients | Specifies the recipients value. |
Returns
| Type | Description |
|---|---|
| MimeMessage |