|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.server.security.util.impl.SessionLogoutServiceImpl
public class SessionLogoutServiceImpl
Service that tracks sessions and allows logout from multiple sessions
associated to the same user.
To be populated through addLoginSession(HttpSession, Authentication)
, e.g. by the MultiWarSessionAuthenticationStrategy
, while
SpringSessionTrackerListener
removes expired sessions.
Field Summary | |
---|---|
static String |
SESSION_ATTRIBUTE_PRINCIPAL
The attribute name under which the principal is stored, under which it was added to the service. |
Constructor Summary | |
---|---|
SessionLogoutServiceImpl()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SESSION_ATTRIBUTE_PRINCIPAL
Constructor Detail |
---|
public SessionLogoutServiceImpl()
Method Detail |
---|
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)
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |