Interface WebSecurityCustomizer
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface WebSecurityCustomizer
Callback interface for customizingWebSecurity
. Beans of this type will automatically be used byWebSecurityConfiguration
to customizeWebSecurity
. Example usage:@Bean public WebSecurityCustomizer ignoringCustomizer() { return (web) -> web.ignoring().antMatchers("/ignore1", "/ignore2"); }
- Since:
- 5.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
customize(WebSecurity web)
Performs the customizations onWebSecurity
.
-
-
-
Method Detail
-
customize
void customize(WebSecurity web)
Performs the customizations onWebSecurity
.- Parameters:
web
- the instance ofWebSecurity
to apply to customizations to
-
-