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 Type
    Method
    Description
     
     
    Each pattern is either an IP wildcard (hexadecimal digits, dots, colons and *, where dots and colons match literally, a * inside the pattern matches within one address segment, a trailing * matches the rest of the address and hexadecimal digits match regardless of case) or, if it contains any other character or starts with a dot, a regular expression matched against the whole host address.
    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

      List<String> getIpPatterns()
      Each pattern is either an IP wildcard (hexadecimal digits, dots, colons and *, where dots and colons match literally, a * inside the pattern matches within one address segment, a trailing * matches the rest of the address and hexadecimal digits match regardless of case) or, if it contains any other character or starts with a dot, a regular expression matched against the whole host address.
      Returns:
      a list of IP patterns. e.g. [127.0.0.1, 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