@FunctionalInterface
public interface WebSecurityCustomizer
WebSecurity
.
Beans of this type will automatically be used by WebSecurityConfiguration
to
customize WebSecurity
.
Example usage:
@Bean public WebSecurityCustomizer ignoringCustomizer() { return (web) -> web.ignoring().antMatchers("/ignore1", "/ignore2"); }
Modifier and Type | Method and Description |
---|---|
void |
customize(WebSecurity web)
Performs the customizations on
WebSecurity . |
void customize(WebSecurity web)
WebSecurity
.web
- the instance of WebSecurity
to apply to customizations to