This is the default implementation of the SSO Session Manager.
author: Sebastian Gonzalez Oyuela version: $Id: SSOSessionManagerImpl.java 508 2008-02-18 13:32:29Z sgonzalez $
Constructor Summary
public
SSOSessionManagerImpl() This implementation uses a MemoryStore and a defaylt Session Id generator.
Method Summary
public void
accessSession(String sessionId) This method accesss the session associated to the received id.
public void
checkValidSessions() Check all sessions and remove those that are not valid from the store.
This method accesss the session associated to the received id.
This resets the session last access time and updates the access count.
Parameters: sessionId - the session id previously returned by initiateSession. throws: NoSuchSessionException - if the session id is not valid or the session is not valid.
Gets an SSO session based on its id.
Parameters: sessionId - the session id previously returned by initiateSession. throws: NoSuchSessionException - if the session id is not related to any sso session.
Gets an SSO session based on the associated user.
Parameters: username - the username used when initiating the session. throws: org.josso.gateway.session.exceptions.NoSuchSessionException - if the session id is not related to any sso session.
Invalidates a session.
Parameters: sessionId - the session id previously returned by initiateSession. throws: NoSuchSessionException - if the session id is not related to any sso session.