Interface IMailSecurityConfig

  • All Known Implementing Classes:
    MailSecurityConfig

    public interface IMailSecurityConfig
    Configuration for mail security (encryption and signing) when sending an email.
    Since:
    8.5.0
    Author:
    Norman Lorenz
    • Method Detail

      • getSecurityType

        @NotNull
        @NotNull EMailSecurityType getSecurityType()
        Returns:
        The security template to use for this mail.
      • isEncrypt

        boolean isEncrypt()
        Returns:
        Whether to encrypt the mail.
      • isSendUnencryptedIfEncryptionFails

        boolean isSendUnencryptedIfEncryptionFails()
        Whether to send the mail unencrypted if encryption fails or unsigned if signing fails. This is only relevant if encryption is enabled.
        Returns:
        Whether to send the mail unencrypted if encryption fails.
        See Also:
        isEncrypt()
      • isSendUnsignedIfSigningFails

        boolean isSendUnsignedIfSigningFails()
        Whether to send the mail unsigned if signing fails. This is only relevant if signing is enabled.
        Returns:
        Whether to send the mail unsigned if signing fails.
        See Also:
        isSign()
      • isSign

        boolean isSign()
        Returns:
        Whether to sign the mail.