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 Summary
Modifier and TypeFieldDescriptionstatic final boolean
The default enable value.static final String
Authentication configuration prefix. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
@NonNull String
boolean
void
setEnabled
(boolean enabled) If authentication is enabled.void
setPassword
(@NonNull String password) Authentication password.void
setUsername
(@NonNull String username) Authentication username.
-
Field Details
-
PREFIX
Authentication configuration prefix.- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
-
Constructor Details
-
JavaMailAuthenticationConfigurationProperties
public JavaMailAuthenticationConfigurationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.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
- Specified by:
getUsername
in interfaceJavaMailAuthenticationConfiguration
- Returns:
- Authentication username.
-
setUsername
Authentication username.- Parameters:
username
- Authentication username..
-
getPassword
- Specified by:
getPassword
in interfaceJavaMailAuthenticationConfiguration
- Returns:
- Authentication password.
-
setPassword
Authentication password.- Parameters:
password
- Authentication password..
-