Package org.springframework.security.config.annotation.web.builders.WebSecurity

Examples of org.springframework.security.config.annotation.web.builders.WebSecurity.IgnoredRequestConfigurer


    public void configure(WebSecurity builder) throws Exception {
    }

    @Override
    public void init(WebSecurity builder) throws Exception {
      IgnoredRequestConfigurer ignoring = builder.ignoring();
      // The ignores are not cumulative, so to prevent overwriting the defaults we
      // add them back.
      List<String> ignored = SpringBootWebSecurityConfiguration
          .getIgnored(this.security);
      if (!this.management.getSecurity().isEnabled()) {
        ignored.addAll(Arrays
            .asList(getEndpointPaths(this.endpointHandlerMapping)));
      }
      if (ignored.contains("none")) {
        ignored.remove("none");
      }
      if (this.errorController != null) {
        ignored.add(normalizePath(this.errorController.getErrorPath()));
      }
      if (this.server != null) {
        String[] paths = this.server.getPathsArray(ignored);
        ignoring.antMatchers(paths);
      }
    }
View Full Code Here


    public void configure(WebSecurity builder) throws Exception {
    }

    @Override
    public void init(WebSecurity builder) throws Exception {
      IgnoredRequestConfigurer ignoring = builder.ignoring();
      List<String> ignored = getIgnored(this.security);
      if (this.errorController != null) {
        ignored.add(normalizePath(this.errorController.getErrorPath()));
      }
      String[] paths = this.server.getPathsArray(ignored);
      ignoring.antMatchers(paths);
    }
View Full Code Here

TOP

Related Classes of org.springframework.security.config.annotation.web.builders.WebSecurity.IgnoredRequestConfigurer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.