public class SessionHandler extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static SessionHandler |
getSessionHandler() |
org.springframework.security.core.session.SessionInformation |
getSessionInformation(java.lang.String sessionId) |
void |
registerAndAuthenticate(java.lang.String sessionId,
UserIdentity userId)
This is essentially the same as calling LoginHandler.authentice() and registerNewSession()
|
void |
registerNewSession(java.lang.String sessionId,
UserIdentity userId) |
void |
removeSessionInformation(java.lang.String sessionId) |
void |
removeSessionInformation(UserIdentity userId)
Note: this is NOT synchronized, which means that it may be possible for the user to re-login whilst the operation is in progress, if this is called for user account removal,
remember to FIRST remove the account to make sure user cannot re-login
|
public static SessionHandler getSessionHandler()
public org.springframework.security.core.session.SessionInformation getSessionInformation(java.lang.String sessionId)
sessionId - SessionRegistry.getSessionInformation(java.lang.String)public void registerNewSession(java.lang.String sessionId, UserIdentity userId) throws java.lang.IllegalStateException
sessionId - userId - java.lang.IllegalStateException - if registry is not availableSessionRegistry.registerNewSession(java.lang.String, java.lang.Object)public void registerAndAuthenticate(java.lang.String sessionId, UserIdentity userId) throws java.lang.IllegalStateException
sessionId - userId - java.lang.IllegalStateExceptionpublic void removeSessionInformation(java.lang.String sessionId)
sessionId - SessionRegistry.removeSessionInformation(java.lang.String)public void removeSessionInformation(UserIdentity userId)
userId - Copyright © 2015 Tampere University of Technology, Pori Department.