Class GreenMailConfiguration


  • public class GreenMailConfiguration
    extends Object
    Properties that can be defined to configure a GreenMail instance or GreenMailRule.
    • Constructor Detail

      • GreenMailConfiguration

        public GreenMailConfiguration()
    • Method Detail

      • withUser

        public GreenMailConfiguration withUser​(String login,
                                               String password)
        The given GreenMailUser will be created when servers will start.
        Parameters:
        login - User id and email address
        password - Password of user that belongs to login name
        Returns:
        Modified configuration
      • withUser

        public GreenMailConfiguration withUser​(String email,
                                               String login,
                                               String password)
        The given GreenMailUser will be created when servers will start.
        Parameters:
        email - Email address
        login - Login name of user
        password - Password of user that belongs to login name
        Returns:
        Modified configuration
      • getUsersToCreate

        public List<UserBean> getUsersToCreate()
        Returns:
        Users that should be created on server startup
      • withDisabledAuthentication

        public GreenMailConfiguration withDisabledAuthentication()
        Disables authentication. Useful if you want to avoid setting up users up front.
        Returns:
        Modified configuration.
      • isAuthenticationDisabled

        public boolean isAuthenticationDisabled()
        Returns:
        true, if authentication is disabled.
        See Also:
        withDisabledAuthentication()