Interface IMailSecurity
public interface IMailSecurity
Interface for mail-encryptors
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionencryptMessageBody(javax.mail.internet.MimeBodyPart bodyPart, Mandant client, javax.mail.Address... recipients) Encrypts the body of a mail message using the givenMimeBodyPartand recipientAddresses.javax.mail.internet.MimeBodyPartsignMessageBody(javax.mail.internet.MimeBodyPart bodyPart, Mandant client, javax.mail.Address sender) Signs the mail message using the givenIBaseMailDataand senderAddress.
-
Method Details
-
encryptMessageBody
IMailEncryptionResult encryptMessageBody(javax.mail.internet.MimeBodyPart bodyPart, Mandant client, javax.mail.Address... recipients) throws MailSecurityException Encrypts the body of a mail message using the givenMimeBodyPartand recipientAddresses.- Parameters:
bodyPart- theMimeBodyPartto encryptclient- The currentMandantfor which the mail is sent.recipients- the recipientAddressesto encrypt for- Returns:
- The
IMailEncryptionResultcontaining the encryptedMimeBodyPartand the results for each recipient - Throws:
MailSecurityException- on errors during encryption
-
signMessageBody
javax.mail.internet.MimeBodyPart signMessageBody(javax.mail.internet.MimeBodyPart bodyPart, Mandant client, javax.mail.Address sender) throws MailSecurityException Signs the mail message using the givenIBaseMailDataand senderAddress.- Parameters:
bodyPart- theMimeBodyPartto signclient- The currentMandantfor which the mail is sent.sender- the senderAddressto sign with- Returns:
- The signed
MimeBodyPart - Throws:
MailSecurityException- on errors during signing
-