Tabnine Logo
org.springframework.security.config.annotation.web.builders
Code IndexAdd Tabnine to your IDE (free)

How to use org.springframework.security.config.annotation.web.builders

Best Java code snippets using org.springframework.security.config.annotation.web.builders (Showing top 20 results out of 4,878)

origin: spring-projects/spring-security

@Override
public MvcMatchersRequestMatcherConfigurer mvcMatchers(HttpMethod method,
    String... mvcPatterns) {
  List<MvcRequestMatcher> mvcMatchers = createMvcMatchers(method, mvcPatterns);
  setMatchers(mvcMatchers);
  return new MvcMatchersRequestMatcherConfigurer(getContext(), mvcMatchers);
}
origin: spring-projects/spring-security

  public void run() {
    FilterSecurityInterceptor securityInterceptor = http
        .getSharedObject(FilterSecurityInterceptor.class);
    web.securityInterceptor(securityInterceptor);
  }
});
origin: spring-projects/spring-security

/**
 * Determines if a particular {@link Filter} is registered to be sorted
 *
 * @param filter
 * @return
 */
public boolean isRegistered(Class<? extends Filter> filter) {
  return getOrder(filter) != null;
}
origin: spring-projects/spring-security

@Override
public void configure(WebSecurity web) throws Exception {
  web
    .ignoring()
      .antMatchers("/resources/**");
}
origin: spring-projects/spring-security

@Override
protected void configure(HttpSecurity http) throws Exception {
  // @formatter:off
  http
    .exceptionHandling();
  // @formatter:on
}
origin: spring-projects/spring-security

@Override
public void configure(WebSecurity web) throws Exception {
  // @formatter:off
  web
    .ignoring()
      .mvcMatchers("/path").servletPath("/spring")
      .mvcMatchers("/notused");
  // @formatter:on
}
origin: spring-projects/spring-security

@Override
public void configure(WebSecurity web) throws Exception {
  // @formatter:off
  web
    .ignoring()
      .mvcMatchers("/path");
  // @formatter:on
}
origin: spring-projects/spring-security

  @Override
  protected void configure(HttpSecurity http) throws Exception {
    http
      .antMatcher("/api/**");
  }
}
origin: spring-projects/spring-security

@Override
protected void configure(HttpSecurity http) throws Exception {
  http
    .requestMatcher(new MyRequestMatcher());
}
origin: spring-projects/spring-security

public HttpSecurity addFilterBefore(Filter filter,
    Class<? extends Filter> beforeFilter) {
  comparator.registerBefore(filter.getClass(), beforeFilter);
  return addFilter(filter);
}
origin: spring-projects/spring-security

protected void configure(HttpSecurity http) throws Exception {
  http
    .addFilter(new UnregisteredFilter());
}
origin: spring-projects/spring-security

  protected void configure(HttpSecurity http) throws Exception {
    http
      .addFilter(CAS_AUTHENTICATION_FILTER);
  }
}
origin: spring-projects/spring-security

@Override
protected void configure(HttpSecurity http) throws Exception {
  // @formatter:off
  http
    .requestCache();
  // @formatter:on
}
origin: spring-projects/spring-security

  @Override
  protected void configure(HttpSecurity http) throws Exception {
    http
      .regexMatcher("/regex/.*");
  }
}
origin: spring-projects/spring-security

/**
 * @param context
 */
private RequestMatcherConfigurer(ApplicationContext context) {
  setApplicationContext(context);
}
origin: spring-projects/spring-security

@Override
protected RequestMatcherConfigurer chainRequestMatchers(
    List<RequestMatcher> requestMatchers) {
  setMatchers(requestMatchers);
  return this;
}
origin: spring-projects/spring-security

  @Override
  public void configure(WebSecurity web) throws Exception {
    web.privilegeEvaluator(PRIVILEGE_EVALUATOR);
  }
}
origin: spring-projects/spring-security

@Override
public void configure(WebSecurity web) throws Exception {
  web
    .ignoring()
      .antMatchers("/resources/**", "/public/**");
}
origin: spring-projects/spring-security

@Override
public void configure(WebSecurity web) throws Exception {
  web
    .ignoring()
      .antMatchers("/resources/**");
}
origin: spring-projects/spring-security

@Override
public void configure(WebSecurity web)	throws Exception {
  web
    .ignoring()
      .antMatchers("/ignore1", "/ignore2");
}
org.springframework.security.config.annotation.web.builders

Most used classes

  • HttpSecurity
    A HttpSecurity is similar to Spring Security's XML element in the namespace configuration. It
  • WebSecurity
    The WebSecurity is created by WebSecurityConfiguration to create the FilterChainProxy known as the
  • WebSecurity$IgnoredRequestConfigurer
    Allows registering RequestMatcher instances that should be ignored by Spring Security.
  • HttpSecurity$RequestMatcherConfigurer
    Allows mapping HTTP requests that this HttpSecurity will be used for
  • HttpSecurity$MvcMatchersRequestMatcherConfigurer
    An extension to RequestMatcherConfigurer that allows optionally configuring the servlet path.
  • WebSecurity$MvcMatchersIgnoredRequestConfigurer,
  • FilterComparator$Step,
  • DebugFilter,
  • DebugRequestWrapper,
  • HttpConfigurationTests$UnregisteredFilter,
  • HttpSecurity$OrRequestMatcher,
  • Logger,
  • NamespaceHttpTests$DisableUseExpressionsConfig,
  • NamespaceHttpTests$RequestMatcherRefConfig$MyRequestMatcher,
  • NamespaceHttpTests$UseExpressionsConfig,
  • WebSecurityTests
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now