eu.esdihumboldt.hale.server.security.util
Class MultiWarRememberMeServices
java.lang.Object
org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices
org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices
eu.esdihumboldt.hale.server.security.util.MultiWarRememberMeServices
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean, org.springframework.security.web.authentication.logout.LogoutHandler, org.springframework.security.web.authentication.RememberMeServices
public class MultiWarRememberMeServices
- extends org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices
Sets the remember me cookie always for the root context. Calls a
SessionLogoutService
on logout if available, to also remove the
authentication information from sessions in other web applications. In
contrast to the usual remember me, the cookie is deleted when the browser is
closed.
- Author:
- Simon Templer
Fields inherited from class org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices |
DEFAULT_PARAMETER, logger, messages, SPRING_SECURITY_REMEMBER_ME_COOKIE_KEY, TWO_WEEKS_S |
Method Summary |
protected void |
cancelCookie(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected String |
getCookiePath(javax.servlet.http.HttpServletRequest request)
Get the cookie path. |
void |
logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication)
|
protected void |
setCookie(String[] tokens,
int maxAge,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
setLogoutService(SessionLogoutService logoutService)
|
Methods inherited from class org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices |
calculateLoginLifetime, isTokenExpired, makeTokenSignature, onLoginSuccess, processAutoLoginCookie, retrievePassword, retrieveUserName |
Methods inherited from class org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices |
afterPropertiesSet, autoLogin, createSuccessfulAuthentication, decodeCookie, encodeCookie, extractRememberMeCookie, getAuthenticationDetailsSource, getCookieName, getKey, getParameter, getTokenValiditySeconds, getUserDetailsService, loginFail, loginSuccess, onLoginFail, rememberMeRequested, setAlwaysRemember, setAuthenticationDetailsSource, setAuthoritiesMapper, setCookieName, setKey, setParameter, setTokenValiditySeconds, setUserDetailsChecker, setUserDetailsService, setUseSecureCookie |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiWarRememberMeServices
public MultiWarRememberMeServices(String key,
org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
- See Also:
TokenBasedRememberMeServices.TokenBasedRememberMeServices(String,
UserDetailsService)
setLogoutService
public void setLogoutService(SessionLogoutService logoutService)
- Parameters:
logoutService
- the logoutService to set
cancelCookie
protected void cancelCookie(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
- Overrides:
cancelCookie
in class org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices
getCookiePath
protected String getCookiePath(javax.servlet.http.HttpServletRequest request)
- Get the cookie path. Always returns the root context
/
.
- Parameters:
request
- the HTTP servlet request
- Returns:
- the cookie path
setCookie
protected void setCookie(String[] tokens,
int maxAge,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
- Overrides:
setCookie
in class org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices
logout
public void logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication)
- Specified by:
logout
in interface org.springframework.security.web.authentication.logout.LogoutHandler
- Overrides:
logout
in class org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices
- See Also:
AbstractRememberMeServices.logout(HttpServletRequest,
HttpServletResponse, Authentication)
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d