public final class CookieClearingLogoutHandler extends java.lang.Object implements LogoutHandler
Constructor and Description |
---|
CookieClearingLogoutHandler(javax.servlet.http.Cookie... cookiesToClear) |
CookieClearingLogoutHandler(java.lang.String... cookiesToClear) |
Modifier and Type | Method and Description |
---|---|
void |
logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Authentication authentication)
Causes a logout to be completed.
|
public CookieClearingLogoutHandler(java.lang.String... cookiesToClear)
public CookieClearingLogoutHandler(javax.servlet.http.Cookie... cookiesToClear)
cookiesToClear
- - One or more Cookie objects that must have maxAge of 0public void logout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Authentication authentication)
LogoutHandler
logout
in interface LogoutHandler
request
- the HTTP requestresponse
- the HTTP responseauthentication
- the current principal details