• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

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.

Inheritance
object
SMimeEncryptor
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Mail.Rfc.SMime
Assembly: DRIT.Mail.dll
Syntax
public sealed class SMimeEncryptor

Constructors

View Source

SMimeEncryptor(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 Source

Encrypt(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
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX