@ConfigurationProperties(value="micronaut.security") public class SecurityConfigurationProperties extends java.lang.Object implements SecurityConfiguration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANYWHERE |
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
SecurityConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.util.List<InterceptUrlMapPattern> |
getInterceptUrlMap()
interceptUrlMap getter.
|
java.util.List<java.lang.String> |
getIpPatterns()
ipPatterns getter.
|
boolean |
isEnabled()
enabled getter.
|
void |
setEnabled(boolean enabled)
If Security is enabled.
|
void |
setInterceptUrlMap(java.util.List<InterceptUrlMapPattern> interceptUrlMap)
Map that defines the interception patterns.
|
void |
setIpPatterns(java.util.List<java.lang.String> ipPatterns)
Allowed IP patterns.
|
public static final java.lang.String PREFIX
public static final java.lang.String ANYWHERE
public static final boolean DEFAULT_ENABLED
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
public java.util.List<InterceptUrlMapPattern> getInterceptUrlMap()
getInterceptUrlMap
in interface SecurityConfiguration
InterceptUrlMapPattern
public java.util.List<java.lang.String> getIpPatterns()
getIpPatterns
in interface SecurityConfiguration
public void setEnabled(boolean enabled)
enabled
- True if security is enabledpublic void setInterceptUrlMap(java.util.List<InterceptUrlMapPattern> interceptUrlMap)
interceptUrlMap
- The intercept urls mapspublic void setIpPatterns(java.util.List<java.lang.String> ipPatterns)
ipPatterns
- The IP patterns