Search in sources :

Example 1 with DelegatingLogoutSuccessHandler

use of org.springframework.security.web.authentication.logout.DelegatingLogoutSuccessHandler in project spring-security by spring-projects.

the class LogoutConfigurer method createDefaultSuccessHandler.

private LogoutSuccessHandler createDefaultSuccessHandler() {
    SimpleUrlLogoutSuccessHandler urlLogoutHandler = new SimpleUrlLogoutSuccessHandler();
    urlLogoutHandler.setDefaultTargetUrl(this.logoutSuccessUrl);
    if (this.defaultLogoutSuccessHandlerMappings.isEmpty()) {
        return urlLogoutHandler;
    }
    DelegatingLogoutSuccessHandler successHandler = new DelegatingLogoutSuccessHandler(this.defaultLogoutSuccessHandlerMappings);
    successHandler.setDefaultLogoutSuccessHandler(urlLogoutHandler);
    return successHandler;
}
Also used : DelegatingLogoutSuccessHandler(org.springframework.security.web.authentication.logout.DelegatingLogoutSuccessHandler) SimpleUrlLogoutSuccessHandler(org.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler)

Aggregations

DelegatingLogoutSuccessHandler (org.springframework.security.web.authentication.logout.DelegatingLogoutSuccessHandler)1 SimpleUrlLogoutSuccessHandler (org.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler)1