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.
Inherited Members
Namespace: DRIT.Mail.Rfc.SMime
Assembly: DRIT.Mail.dll
Syntax
public sealed class SMimeSigner
Constructors
View SourceSMimeSigner(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 SourceSignDetached(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 |
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 |