Search in sources :

Example 1 with LogoutSuccessEventPublishingLogoutHandler

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

the class LogoutConfigurer method createLogoutFilter.

/**
 * Creates the {@link LogoutFilter} using the {@link LogoutHandler} instances, the
 * {@link #logoutSuccessHandler(LogoutSuccessHandler)} and the
 * {@link #logoutUrl(String)}.
 * @param http the builder to use
 * @return the {@link LogoutFilter} to use.
 */
private LogoutFilter createLogoutFilter(H http) {
    this.logoutHandlers.add(this.contextLogoutHandler);
    this.logoutHandlers.add(postProcess(new LogoutSuccessEventPublishingLogoutHandler()));
    LogoutHandler[] handlers = this.logoutHandlers.toArray(new LogoutHandler[0]);
    LogoutFilter result = new LogoutFilter(getLogoutSuccessHandler(), handlers);
    result.setLogoutRequestMatcher(getLogoutRequestMatcher(http));
    result = postProcess(result);
    return result;
}
Also used : LogoutSuccessEventPublishingLogoutHandler(org.springframework.security.web.authentication.logout.LogoutSuccessEventPublishingLogoutHandler) LogoutSuccessEventPublishingLogoutHandler(org.springframework.security.web.authentication.logout.LogoutSuccessEventPublishingLogoutHandler) SecurityContextLogoutHandler(org.springframework.security.web.authentication.logout.SecurityContextLogoutHandler) CookieClearingLogoutHandler(org.springframework.security.web.authentication.logout.CookieClearingLogoutHandler) LogoutHandler(org.springframework.security.web.authentication.logout.LogoutHandler) LogoutFilter(org.springframework.security.web.authentication.logout.LogoutFilter)

Aggregations

CookieClearingLogoutHandler (org.springframework.security.web.authentication.logout.CookieClearingLogoutHandler)1 LogoutFilter (org.springframework.security.web.authentication.logout.LogoutFilter)1 LogoutHandler (org.springframework.security.web.authentication.logout.LogoutHandler)1 LogoutSuccessEventPublishingLogoutHandler (org.springframework.security.web.authentication.logout.LogoutSuccessEventPublishingLogoutHandler)1 SecurityContextLogoutHandler (org.springframework.security.web.authentication.logout.SecurityContextLogoutHandler)1