@ConfigurationProperties(value="micronaut.security.filter") public class SecurityFilterConfigurationProperties extends java.lang.Object implements SecurityFilterConfiguration
ConfigurationProperties
implementation of SecurityFilterConfiguration
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
SecurityFilterConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPattern() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Enables
SecurityFilter . |
void |
setPath(java.lang.String pattern)
Pattern the
SecurityFilter should match. |
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
public SecurityFilterConfigurationProperties()
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
SecurityFilter
@NonNull public java.lang.String getPattern()
getPattern
in interface SecurityFilterConfiguration
SecurityFilter
should match.public void setEnabled(boolean enabled)
SecurityFilter
. Default value trueenabled
- True if it is enabledpublic void setPath(@NonNull java.lang.String pattern)
SecurityFilter
should match. Default value `/**`. URLS NOT MATCHED BY PREVIOUS PATTERN ARE NOT SECUREDpattern
- The pattern