Package de.xima.fc.mail.interfaces
Interface IMailSecurity
-
public interface IMailSecurityInterface for mail-encryptors- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IMailEncryptionResultencryptMessageBody(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 Detail
-
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 MailSecurityExceptionSigns 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
-
-