@Override public MvcMatchersRequestMatcherConfigurer mvcMatchers(HttpMethod method, String... mvcPatterns) { List<MvcRequestMatcher> mvcMatchers = createMvcMatchers(method, mvcPatterns); setMatchers(mvcMatchers); return new MvcMatchersRequestMatcherConfigurer(getContext(), mvcMatchers); }
public void run() { FilterSecurityInterceptor securityInterceptor = http .getSharedObject(FilterSecurityInterceptor.class); web.securityInterceptor(securityInterceptor); } });
/** * 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; }
@Override public void configure(WebSecurity web) throws Exception { web .ignoring() .antMatchers("/resources/**"); }
@Override protected void configure(HttpSecurity http) throws Exception { // @formatter:off http .exceptionHandling(); // @formatter:on }
@Override public void configure(WebSecurity web) throws Exception { // @formatter:off web .ignoring() .mvcMatchers("/path").servletPath("/spring") .mvcMatchers("/notused"); // @formatter:on }
@Override public void configure(WebSecurity web) throws Exception { // @formatter:off web .ignoring() .mvcMatchers("/path"); // @formatter:on }
@Override protected void configure(HttpSecurity http) throws Exception { http .antMatcher("/api/**"); } }
@Override protected void configure(HttpSecurity http) throws Exception { http .requestMatcher(new MyRequestMatcher()); }
public HttpSecurity addFilterBefore(Filter filter, Class<? extends Filter> beforeFilter) { comparator.registerBefore(filter.getClass(), beforeFilter); return addFilter(filter); }
protected void configure(HttpSecurity http) throws Exception { http .addFilter(new UnregisteredFilter()); }
protected void configure(HttpSecurity http) throws Exception { http .addFilter(CAS_AUTHENTICATION_FILTER); } }
@Override protected void configure(HttpSecurity http) throws Exception { // @formatter:off http .requestCache(); // @formatter:on }
@Override protected void configure(HttpSecurity http) throws Exception { http .regexMatcher("/regex/.*"); } }
/** * @param context */ private RequestMatcherConfigurer(ApplicationContext context) { setApplicationContext(context); }
@Override protected RequestMatcherConfigurer chainRequestMatchers( List<RequestMatcher> requestMatchers) { setMatchers(requestMatchers); return this; }
@Override public void configure(WebSecurity web) throws Exception { web.privilegeEvaluator(PRIVILEGE_EVALUATOR); } }
@Override public void configure(WebSecurity web) throws Exception { web .ignoring() .antMatchers("/resources/**", "/public/**"); }
@Override public void configure(WebSecurity web) throws Exception { web .ignoring() .antMatchers("/resources/**"); }
@Override public void configure(WebSecurity web) throws Exception { web .ignoring() .antMatchers("/ignore1", "/ignore2"); }