Class SecurityFilterConfigurationProperties

java.lang.Object
io.micronaut.security.filters.SecurityFilterConfigurationProperties
All Implemented Interfaces:
io.micronaut.core.util.Toggleable, SecurityFilterConfiguration

@ConfigurationProperties("micronaut.security.filter") public class SecurityFilterConfigurationProperties extends Object implements SecurityFilterConfiguration
ConfigurationProperties implementation of SecurityFilterConfiguration.
Since:
3.1.0
Author:
Sergio del Amo
  • Field Details

  • Constructor Details

    • SecurityFilterConfigurationProperties

      public SecurityFilterConfigurationProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
      Returns:
      true if you want to enable the SecurityFilter
    • getPattern

      @NonNull public @NonNull String getPattern()
      Specified by:
      getPattern in interface SecurityFilterConfiguration
      Returns:
      The pattern the SecurityFilter should match.
    • setEnabled

      public void setEnabled(boolean enabled)
      Enables SecurityFilter. Default value true
      Parameters:
      enabled - True if it is enabled
    • setPath

      public void setPath(@NonNull @NonNull String pattern)
      Pattern the SecurityFilter should match. Default value `/**`. URLS NOT MATCHED BY PREVIOUS PATTERN ARE NOT SECURED
      Parameters:
      pattern - The pattern