Interface IMailSecurity


  • public interface IMailSecurity
    Interface for mail-encryptors
    Author:
    XIMA MEDIA GmbH
    • 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 given MimeBodyPart and recipient Addresses.
        Parameters:
        bodyPart - the MimeBodyPart to encrypt
        client - The current Mandant for which the mail is sent.
        recipients - the recipient Addresses to encrypt for
        Returns:
        The IMailEncryptionResult containing the encrypted MimeBodyPart and 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 given IBaseMailData and sender Address.
        Parameters:
        bodyPart - the MimeBodyPart to sign
        client - The current Mandant for which the mail is sent.
        sender - the sender Address to sign with
        Returns:
        The signed MimeBodyPart
        Throws:
        MailSecurityException - on errors during signing