Interface IMailEncryptionResult
- All Known Implementing Classes:
MailEncryptionResult
public interface IMailEncryptionResult
The result of an email encryption operation, including the
encrypted message and the results for
each recipient. If encryption fails for a recipient, the corresponding result will
indicate the failure.- Since:
- 8.5.0
- Author:
- Norman Lorenz
-
Method Summary
Modifier and TypeMethodDescription@NotNull javax.mail.internet.MimeBodyPartgetBody()The encrypted MimeBodyPart.@NotNull Collection<IRecipientEncryptionResult> The encryption results for each recipient.
-
Method Details
-
getBody
@NotNull @NotNull javax.mail.internet.MimeBodyPart getBody()The encrypted MimeBodyPart. This part contains the encrypted content of the email. It may not be encrypted for all recipients if some recipients' encryption failed, which will be indicated in therecipient results.- Returns:
- The encrypted MimeBodyPart.
-
getRecipientResults
The encryption results for each recipient. The result indicates whether encryption wassuccessfulfor that recipient.- Returns:
- A collection of recipient encryption results.
-