Class JavaMailAuthenticationConfigurationProperties

java.lang.Object
io.micronaut.email.javamail.sender.authentication.JavaMailAuthenticationConfigurationProperties
All Implemented Interfaces:
io.micronaut.core.util.Toggleable, JavaMailAuthenticationConfiguration

@ConfigurationProperties("javamail.authentication") public class JavaMailAuthenticationConfigurationProperties extends Object implements JavaMailAuthenticationConfiguration
ConfigurationProperties implementation of JavaMailAuthenticationConfiguration.
Since:
1.3.0
Author:
Lukáš Moravec
  • Field Details

  • Constructor Details

    • JavaMailAuthenticationConfigurationProperties

      public JavaMailAuthenticationConfigurationProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
    • setEnabled

      public void setEnabled(boolean enabled)
      If authentication is enabled. Default value: `true`
      Parameters:
      enabled - True if authentication is enabled
    • getUsername

      @NonNull public @NonNull String getUsername()
      Specified by:
      getUsername in interface JavaMailAuthenticationConfiguration
      Returns:
      Authentication username.
    • setUsername

      public void setUsername(@NonNull @NonNull String username)
      Authentication username.
      Parameters:
      username - Authentication username..
    • getPassword

      @NonNull public @NonNull String getPassword()
      Specified by:
      getPassword in interface JavaMailAuthenticationConfiguration
      Returns:
      Authentication password.
    • setPassword

      public void setPassword(@NonNull @NonNull String password)
      Authentication password.
      Parameters:
      password - Authentication password..