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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AuthenticationStrategygetAuthenticationProviderStrategy()java.util.List<InterceptUrlMapPattern>getInterceptUrlMap()java.util.List<java.lang.String>getIpPatterns()default booleanisRejectNotFound()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
-
-
-
-
Method Detail
-
getIpPatterns
java.util.List<java.lang.String> getIpPatterns()
- Returns:
- a list of IP Regex patterns. e.g. [192.168.1.*]
-
getInterceptUrlMap
java.util.List<InterceptUrlMapPattern> getInterceptUrlMap()
- Returns:
- a list of
InterceptUrlMapPattern
-
getAuthenticationProviderStrategy
default AuthenticationStrategy 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.
-
-