Example usage for org.springframework.security.config.annotation.web.builders WebSecurity securityInterceptor

List of usage examples for org.springframework.security.config.annotation.web.builders WebSecurity securityInterceptor

Introduction

In this page you can find the example usage for org.springframework.security.config.annotation.web.builders WebSecurity securityInterceptor.

Prototype

public WebSecurity securityInterceptor(FilterSecurityInterceptor securityInterceptor) 

Source Link

Document

Sets the FilterSecurityInterceptor .

Usage

From source file:cn.timeoff.config.hackspring.WebSecurityConfigurerAdapter.java

public void init(final WebSecurity web) throws Exception {
    final HttpSecurity http = getHttp();
    web.addSecurityFilterChainBuilder(http).postBuildAction(new Runnable() {
        public void run() {
            FilterSecurityInterceptor securityInterceptor = http
                    .getSharedObject(FilterSecurityInterceptor.class);
            web.securityInterceptor(securityInterceptor);
        }/*from  ww w  .ja va2  s  .  co  m*/
    });
}