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 SymmetricKeyAlgorithmId, _ encryptionParameters As EncryptionParameters, _ ParamArray recipients As Certificate() _ ) |
C# |
---|
public void SetEnvelopedContent( MimeEntity entity, SymmetricKeyAlgorithmId encryptionAlgorithm, EncryptionParameters encryptionParameters, params Certificate[] recipients ) |
Parameters
- entity
- Type: Rebex.Mime..::..MimeEntity
Entity to be enveloped.
- encryptionAlgorithm
- Type: Rebex.Security.Cryptography..::..SymmetricKeyAlgorithmId
Encryption algorithm.
- 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, AES-256, AES-192, AES-128, 3DES, DES, RC2 encryption algorithms are supported.