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 Details

    • getIpPatterns

      List<String> getIpPatterns()
      Returns:
      a list of IP Regex patterns. e.g. [192.168.1.*]
    • getInterceptUrlMap

      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.
    • isInterceptUrlMapPrependPatternWithContextPath

      boolean isInterceptUrlMapPrependPatternWithContextPath()
      Returns:
      Whether the intercept URL patterns should be prepended with context path if defined.
      Since:
      3.7.2