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, _ encryptionParameters As EncryptionParameters, _ ParamArray recipients As Certificate() _ ) |
C# |
---|
public void SetEnvelopedContent( MimeEntity entity, string encryptionAlgorithm, EncryptionParameters encryptionParameters, 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.
- encryptionParameters
- Type: Rebex.Security.Cryptography..::..EncryptionParameters
Encryption parameters (to specify RSAES-OAEP parameters). Can be null (for PKCS #1).
- 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.