public class SessionLogoutServiceImpl extends Object implements SessionTracker, SessionLogoutService
addLoginSession(HttpSession, Authentication)
, e.g. by the MultiWarSessionAuthenticationStrategy
, while
SpringSessionTrackerListener
removes expired sessions.Modifier and Type | Field and Description |
---|---|
static String |
SESSION_ATTRIBUTE_PRINCIPAL
The attribute name under which the principal is stored, under which it
was added to the service.
|
Constructor and Description |
---|
SessionLogoutServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addLoginSession(javax.servlet.http.HttpSession session,
org.springframework.security.core.Authentication authentication)
Add a session after the user was authenticated.
|
void |
addSession(javax.servlet.http.HttpSession session)
Add a session.
|
void |
logout(org.springframework.security.core.Authentication authentication)
Logout the user authenticated by the given authentication object.
|
void |
removeSession(javax.servlet.http.HttpSession session)
Remove a session.
|
public static final String SESSION_ATTRIBUTE_PRINCIPAL
public void addLoginSession(javax.servlet.http.HttpSession session, org.springframework.security.core.Authentication authentication)
SessionLogoutService
addLoginSession
in interface SessionLogoutService
session
- the HTTP sessionauthentication
- the successful authenticationSessionLogoutService.addLoginSession(HttpSession, Authentication)
public void logout(org.springframework.security.core.Authentication authentication)
SessionLogoutService
logout
in interface SessionLogoutService
authentication
- the user authenticationSessionLogoutService.logout(Authentication)
public void addSession(javax.servlet.http.HttpSession session)
SessionTracker
addSession
in interface SessionTracker
session
- the HTTP sessionSessionTracker.addSession(HttpSession)
public void removeSession(javax.servlet.http.HttpSession session)
SessionTracker
removeSession
in interface SessionTracker
session
- the HTTP sessionSessionTracker.removeSession(HttpSession)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a