MailMessage.Encrypt Method
Namespace: Rebex.Mail
Assembly: Rebex.Mail.dll (version 7.0.9083)
Encrypt(IEnumerable<Certificate>)
Encrypts a message.
Declaration
public void Encrypt(IEnumerable<Certificate> recipients)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Certificate> | recipients | The list of recipients' certificates. At least one must be specified. |
Remarks
Encrypting the message will make its content inaccessible until it is decrypted.
Encrypt(Certificate[])
Encrypts a message.
Declaration
public void Encrypt(params Certificate[] recipients)
Parameters
Type | Name | Description |
---|---|---|
Certificate[] | recipients | The list of recipients' certificates. At least one must be specified. |
Remarks
Encrypting the message will make its content inaccessible until it is decrypted.
Encrypt(MailEncryptionAlgorithm, IEnumerable<Certificate>)
Encrypts a message.
Declaration
public void Encrypt(MailEncryptionAlgorithm encryptionAlgorithm, IEnumerable<Certificate> recipients)
Parameters
Type | Name | Description |
---|---|---|
MailEncryptionAlgorithm | encryptionAlgorithm | An encryption algorithm to use. |
IEnumerable<Certificate> | recipients | The list of recipients' certificates. At least one must be specified. |
Remarks
Encrypting the message will make its content inaccessible until it is decrypted.
Encrypt(MailEncryptionAlgorithm, Certificate[])
Encrypts a message.
Declaration
public void Encrypt(MailEncryptionAlgorithm encryptionAlgorithm, params Certificate[] recipients)
Parameters
Type | Name | Description |
---|---|---|
MailEncryptionAlgorithm | encryptionAlgorithm | An encryption algorithm to use. |
Certificate[] | recipients | The list of recipients' certificates. At least one must be specified. |
Remarks
Encrypting the message will make its content inaccessible until it is decrypted.
Encrypt(MailEncryptionParameters, IEnumerable<Certificate>)
Encrypts a message.
Declaration
public void Encrypt(MailEncryptionParameters encryptionParameters, IEnumerable<Certificate> recipients)
Parameters
Type | Name | Description |
---|---|---|
MailEncryptionParameters | encryptionParameters | Encryption parameters (to specify RSAES-OAEP parameters). Can be null (for PKCS #1). |
IEnumerable<Certificate> | recipients | The list of recipients' certificates. At least one must be specified. |
Remarks
Encrypting the message will make its content inaccessible until it is decrypted.
Encrypt(MailEncryptionParameters, Certificate[])
Encrypts a message.
Declaration
public void Encrypt(MailEncryptionParameters encryptionParameters, params Certificate[] recipients)
Parameters
Type | Name | Description |
---|---|---|
MailEncryptionParameters | encryptionParameters | Encryption parameters (to specify RSAES-OAEP parameters). Can be null (for PKCS #1). |
Certificate[] | recipients | The list of recipients' certificates. At least one must be specified. |
Remarks
Encrypting the message will make its content inaccessible until it is decrypted.