Class BasicAuthAuthenticationConfiguration
java.lang.Object
io.micronaut.security.authentication.BasicAuthAuthenticationConfiguration
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
@ConfigurationProperties("micronaut.security.basic-auth")
public class BasicAuthAuthenticationConfiguration
extends Object
implements io.micronaut.core.util.Toggleable
Configuration for basic authentication.
- Since:
- 2.0.0
- Author:
- James Kleeh
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
The default enable value.static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setEnabled
(boolean enabled) Enables theBasicAuthAuthenticationFetcher
.
-
Field Details
-
PREFIX
- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
-
Constructor Details
-
BasicAuthAuthenticationConfiguration
public BasicAuthAuthenticationConfiguration()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled) Enables theBasicAuthAuthenticationFetcher
. Default value true.- Parameters:
enabled
- True if enabled
-