Class MailEncryptionResult
java.lang.Object
de.xima.fc.mail.impl.MailEncryptionResult
- All Implemented Interfaces:
IMailEncryptionResult
Implementation of
IMailEncryptionResult.- Since:
- 8.5.0
- Author:
- Norman Lorenz
-
Method Summary
Modifier and TypeMethodDescriptionjavax.mail.internet.MimeBodyPartgetBody()The encrypted MimeBodyPart.The encryption results for each recipient.static MailEncryptionResultof(javax.mail.internet.MimeBodyPart body, Collection<IRecipientEncryptionResult> recipientResults)
-
Method Details
-
of
public static MailEncryptionResult of(javax.mail.internet.MimeBodyPart body, Collection<IRecipientEncryptionResult> recipientResults) -
getBody
public javax.mail.internet.MimeBodyPart getBody()Description copied from interface:IMailEncryptionResultThe 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.- Specified by:
getBodyin interfaceIMailEncryptionResult- Returns:
- The encrypted MimeBodyPart.
-
getRecipientResults
Description copied from interface:IMailEncryptionResultThe encryption results for each recipient. The result indicates whether encryption wassuccessfulfor that recipient.- Specified by:
getRecipientResultsin interfaceIMailEncryptionResult- Returns:
- A collection of recipient encryption results.
-