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

Class SMimeSigner

Signs MIME messages with S/MIME (RFC 5751 §3.4). Produces either a detached multipart/signed message or an opaque application/pkcs7-mime; smime-type=signed-data message.

Inheritance
object
SMimeSigner
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 SMimeSigner

Constructors

View Source

SMimeSigner(SMimeSignerOptions)

Initializes a new instance of the SMimeSigner class with the specified options.

Declaration
public SMimeSigner(SMimeSignerOptions options)
Parameters
Type Name Description
SMimeSignerOptions options

The options controlling the operation.

Methods

View Source

SignDetached(MimeMessage)

Signs the message with a detached signature, producing a multipart/signed message. The original message body entity becomes the first MIME part and the CMS signature becomes the second.

Declaration
public MimeMessage SignDetached(MimeMessage message)
Parameters
Type Name Description
MimeMessage message

The message to process.

Returns
Type Description
MimeMessage
View Source

SignOpaque(MimeMessage)

Signs the message with an opaque signature, producing an application/pkcs7-mime; smime-type=signed-data message. The message body entity is embedded inside the CMS SignedData.

Declaration
public MimeMessage SignOpaque(MimeMessage message)
Parameters
Type Name Description
MimeMessage message

The message to process.

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