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.
Callback interface for customizing
WebSecurity.
Beans of this type will automatically be used by WebSecurityConfiguration to
customize WebSecurity.
Example usage:
@Bean
public WebSecurityCustomizer ignoringCustomizer() {
return (web) -> web.ignoring().requestMatchers("/ignore1", "/ignore2");
}
- Since:
- 5.4
-
Method Summary
Modifier and TypeMethodDescriptionvoidcustomize(WebSecurity web) Performs the customizations onWebSecurity.
-
Method Details
-
customize
Performs the customizations onWebSecurity.- Parameters:
web- the instance ofWebSecurityto apply to customizations to
-