Java 类org.springframework.security.web.context.AbstractSecurityWebApplicationInitializer 实例源码

项目:steve-plugsurfing    文件:SteveAppContext.java   
private void addSecurityFilter(WebAppContext ctx) {
    // The bean name is not arbitrary, but is as expected by Spring
    Filter f = new DelegatingFilterProxy(AbstractSecurityWebApplicationInitializer.DEFAULT_FILTER_NAME);

    ctx.addFilter(
            new FilterHolder(f),
            CONFIG.getSpringManagerMapping(),
            EnumSet.allOf(DispatcherType.class)
    );
}
项目:feign-hystrix-oauth2-spring-boot-starter    文件:HystrixSecurityContextAutoConfiguration.java   
@Bean
public FilterRegistrationBean securityFilterChain(@Qualifier(AbstractSecurityWebApplicationInitializer.DEFAULT_FILTER_NAME) Filter securityFilter) {
    FilterRegistrationBean registration = new FilterRegistrationBean(securityFilter);
    registration.setOrder(Integer.MAX_VALUE - 2);
    registration.setName(AbstractSecurityWebApplicationInitializer.DEFAULT_FILTER_NAME);
    return registration;
}
项目:jcart    文件:WebConfig.java   
@Bean
public FilterRegistrationBean securityFilterChain(@Qualifier(AbstractSecurityWebApplicationInitializer.DEFAULT_FILTER_NAME) Filter securityFilter) {
    FilterRegistrationBean registration = new FilterRegistrationBean(securityFilter);
    registration.setOrder(Integer.MAX_VALUE - 1);
    registration.setName(AbstractSecurityWebApplicationInitializer.DEFAULT_FILTER_NAME);
    return registration;
}
项目:steve    文件:SteveAppContext.java   
private void addSecurityFilter(WebAppContext ctx) {
    // The bean name is not arbitrary, but is as expected by Spring
    Filter f = new DelegatingFilterProxy(AbstractSecurityWebApplicationInitializer.DEFAULT_FILTER_NAME);

    ctx.addFilter(
            new FilterHolder(f),
            CONFIG.getSpringManagerMapping(),
            EnumSet.allOf(DispatcherType.class)
    );
}