com.atlassian.crowd.integration.springsecurity
Class CrowdLogoutHandler

java.lang.Object
  extended by com.atlassian.crowd.integration.springsecurity.CrowdLogoutHandler
All Implemented Interfaces:
org.springframework.security.web.authentication.logout.LogoutHandler

public class CrowdLogoutHandler
extends Object
implements org.springframework.security.web.authentication.logout.LogoutHandler

Logout handler to logout of Crowd and remove the Crowd SSO token cookie. This logout handler is required for SSO-based Crowd authentication.

Author:
Shihab Hamid.

Constructor Summary
CrowdLogoutHandler()
           
 
Method Summary
 HttpAuthenticator getHttpAuthenticator()
           
 void logout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)
          Causes a logout to be completed.
 void setHttpAuthenticator(HttpAuthenticator httpAuthenticator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrowdLogoutHandler

public CrowdLogoutHandler()
Method Detail

logout

public void logout(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response,
                   org.springframework.security.core.Authentication authentication)
Causes a logout to be completed. The method must complete successfully.

Specified by:
logout in interface org.springframework.security.web.authentication.logout.LogoutHandler
Parameters:
request - the HTTP request
response - the HTTP resonse
authentication - the current principal details

getHttpAuthenticator

public HttpAuthenticator getHttpAuthenticator()

setHttpAuthenticator

public void setHttpAuthenticator(HttpAuthenticator httpAuthenticator)


Copyright © 2012 Atlassian. All Rights Reserved.