Package io.micronaut.security.config
Interface SecurityConfiguration
- All Superinterfaces:
AuthenticationModeConfiguration
,io.micronaut.core.util.Toggleable
- All Known Implementing Classes:
SecurityConfigurationProperties
public interface SecurityConfiguration
extends io.micronaut.core.util.Toggleable, AuthenticationModeConfiguration
Defines security configuration properties.
- Since:
- 1.0
- Author:
- Sergio del Amo
-
Method Summary
Modifier and TypeMethodDescriptiondefault AuthenticationStrategy
boolean
default boolean
For cases where no security rule handles a request and it is determined that the request does not match any routes on the server, whether the response should be to reject the request or allow the not found response to be returned.Methods inherited from interface io.micronaut.security.config.AuthenticationModeConfiguration
getAuthentication
Methods inherited from interface io.micronaut.core.util.Toggleable
isEnabled
-
Method Details
-
getIpPatterns
- Returns:
- a list of IP Regex patterns. e.g. [192.168.1.*]
-
getInterceptUrlMap
List<InterceptUrlMapPattern> getInterceptUrlMap()- Returns:
- a list of
InterceptUrlMapPattern
-
getAuthenticationProviderStrategy
- Returns:
- The authentication strategy
-
isRejectNotFound
default boolean isRejectNotFound()For cases where no security rule handles a request and it is determined that the request does not match any routes on the server, whether the response should be to reject the request or allow the not found response to be returned.- Returns:
- True if the response should be rejected.
-
isInterceptUrlMapPrependPatternWithContextPath
boolean isInterceptUrlMapPrependPatternWithContextPath()- Returns:
- Whether the intercept URL patterns should be prepended with context path if defined.
- Since:
- 3.7.2
-