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.

    public interface WebSecurityCustomizer
    Callback interface for customizing WebSecurity. Beans of this type will automatically be used by WebSecurityConfiguration to customize WebSecurity. Example usage:
     public WebSecurityCustomizer ignoringCustomizer() {
            return (web) -> web.ignoring().antMatchers("/ignore1", "/ignore2");
    • Method Detail

      • customize

        void customize​(WebSecurity web)
        Performs the customizations on WebSecurity.
        web - the instance of WebSecurity to apply to customizations to