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 Default Methods Deprecated Methods Modifier and Type Method Description default IMailEncryptionResultencryptMessageBody(javax.mail.internet.MimeBodyPart bodyPart, Mandant client, javax.mail.Address... recipients)Deprecated, for removal: This API element is subject to removal in a future version.since 8.6.0, useencryptMessageBody(MimeBodyPart, Long, Address...)instead, which allows to pass the tenant ID directlyIMailEncryptionResultencryptMessageBody(javax.mail.internet.MimeBodyPart bodyPart, Long tenantId, javax.mail.Address... recipients)Encrypts the body of a mail message using the givenMimeBodyPartand recipientAddresses.default javax.mail.internet.MimeBodyPartsignMessageBody(javax.mail.internet.MimeBodyPart bodyPart, Mandant client, javax.mail.Address sender)Deprecated, for removal: This API element is subject to removal in a future version.since 8.6.0, usesignMessageBody(MimeBodyPart, Long, Address, MailUser)instead, which allows to pass the sender user for permission checksjavax.mail.internet.MimeBodyPartsignMessageBody(javax.mail.internet.MimeBodyPart bodyPart, Long tenantId, javax.mail.Address senderAddress, MailUser senderUser)Signs the mail message using the givenIBaseMailDataand senderAddress.
-
-
-
Method Detail
-
encryptMessageBody
IMailEncryptionResult encryptMessageBody(javax.mail.internet.MimeBodyPart bodyPart, Long tenantId, javax.mail.Address... recipients) throws MailSecurityException
Encrypts the body of a mail message using the givenMimeBodyPartand recipientAddresses.- Parameters:
bodyPart- theMimeBodyPartto encrypttenantId- The ID of the tenant for 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- Since:
- 8.6.0
-
encryptMessageBody
@Deprecated(since="8.6.0", forRemoval=true) default IMailEncryptionResult encryptMessageBody(javax.mail.internet.MimeBodyPart bodyPart, Mandant client, javax.mail.Address... recipients) throws MailSecurityException
Deprecated, for removal: This API element is subject to removal in a future version.since 8.6.0, useencryptMessageBody(MimeBodyPart, Long, Address...)instead, which allows to pass the tenant ID directlyEncrypts 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, Long tenantId, javax.mail.Address senderAddress, MailUser senderUser) throws MailSecurityExceptionSigns the mail message using the givenIBaseMailDataand senderAddress.- Parameters:
bodyPart- the body to signtenantId- The ID of the tenant for which the mail is sent.senderAddress- the sender address to sign withsenderUser- the user, that is sending the mail, which does not have to be the same as the sender address, but is used for permission checks when signing- Returns:
- The signed MIME body part
- Throws:
MailSecurityException- on errors during signing- Since:
- 8.6.0
-
signMessageBody
@Deprecated(since="8.6.0", forRemoval=true) default javax.mail.internet.MimeBodyPart signMessageBody(javax.mail.internet.MimeBodyPart bodyPart, Mandant client, javax.mail.Address sender) throws MailSecurityException
Deprecated, for removal: This API element is subject to removal in a future version.since 8.6.0, usesignMessageBody(MimeBodyPart, Long, Address, MailUser)instead, which allows to pass the sender user for permission checksSigns 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
-
-