Package io.micronaut.security.filters
Class SecurityFilterConfigurationProperties
java.lang.Object
io.micronaut.security.filters.SecurityFilterConfigurationProperties
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
,SecurityFilterConfiguration
@ConfigurationProperties("micronaut.security.filter")
public class SecurityFilterConfigurationProperties
extends Object
implements SecurityFilterConfiguration
ConfigurationProperties
implementation of SecurityFilterConfiguration
.- Since:
- 3.1.0
- Author:
- Sergio del Amo
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
The default enable value.static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
boolean
void
setEnabled
(boolean enabled) EnablesSecurityFilter
.void
Pattern theSecurityFilter
should match.
-
Field Details
-
PREFIX
- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
-
Constructor Details
-
SecurityFilterConfigurationProperties
public SecurityFilterConfigurationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
- Returns:
- true if you want to enable the
SecurityFilter
-
getPattern
- Specified by:
getPattern
in interfaceSecurityFilterConfiguration
- Returns:
- The pattern the
SecurityFilter
should match.
-
setEnabled
public void setEnabled(boolean enabled) EnablesSecurityFilter
. Default value true- Parameters:
enabled
- True if it is enabled
-
setPath
Pattern theSecurityFilter
should match. Default value `/**`. URLS NOT MATCHED BY PREVIOUS PATTERN ARE NOT SECURED- Parameters:
pattern
- The pattern
-