Sets the content of this entity to the specified enveloped entity.

Namespace:  Rebex.Mime
Assembly:  Rebex.Mail (in Rebex.Mail.dll)

Syntax

Visual Basic
Public Sub SetEnvelopedContent ( _
	entity As MimeEntity, _
	encryptionAlgorithm As String, _
	ParamArray recipients As Certificate() _
)
C#
public void SetEnvelopedContent(
	MimeEntity entity,
	string encryptionAlgorithm,
	params Certificate[] recipients
)

Parameters

entity
Type: Rebex.Mime..::..MimeEntity
Entity to be enveloped.
encryptionAlgorithm
Type: System..::..String
Encryption algorithm OID. Can be null for 3DES.
recipients
Type: array<Rebex.Security.Certificates..::..Certificate>[]()[][]
The list of recipients' certificates.

Remarks

The purpose of enveloped content is to be encrypted. Call the Encrypt()()()() method prior to saving or sending the message.

Currently, 3DES ("1.2.840.113549.3.7"), AES ("2.16.840.1.101.3.4.1.2" for 128-bit, "2.16.840.1.101.3.4.1.22" for 192-bit and "2.16.840.1.101.3.4.1.42" for 256-bit), DES ("1.3.14.3.2.7") and RC2 ("1.2.840.113549.3.2") encryption algorithms are supported.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also