edu.internet2.middleware.shibboleth.idp.session.impl
Class SessionManagerImpl

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.idp.session.impl.SessionManagerImpl
All Implemented Interfaces:
edu.internet2.middleware.shibboleth.common.session.SessionManager<Session>, EventListener, ApplicationContextAware, ApplicationListener

public class SessionManagerImpl
extends Object
implements edu.internet2.middleware.shibboleth.common.session.SessionManager<Session>, ApplicationContextAware, ApplicationListener

Manager of IdP sessions.


Constructor Summary
SessionManagerImpl(org.opensaml.util.storage.StorageService<String,SessionManagerEntry> storageService, long lifetime)
          Constructor.
SessionManagerImpl(org.opensaml.util.storage.StorageService<String,SessionManagerEntry> storageService, String storageParition, long lifetime)
          Constructor.
 
Method Summary
 Session createSession()
          
 Session createSession(String principal)
          
 void destroySession(String sessionID)
          
 Session getSession(String sessionID)
          
 boolean indexSession(Session session, String index)
          
 void onApplicationEvent(ApplicationEvent event)
          
 void removeSessionIndex(String index)
          
 void setApplicationContext(ApplicationContext applicationContext)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionManagerImpl

public SessionManagerImpl(org.opensaml.util.storage.StorageService<String,SessionManagerEntry> storageService,
                          long lifetime)
Constructor.

Parameters:
storageService - service used to store sessions
lifetime - lifetime, in milliseconds, of sessions

SessionManagerImpl

public SessionManagerImpl(org.opensaml.util.storage.StorageService<String,SessionManagerEntry> storageService,
                          String storageParition,
                          long lifetime)
Constructor.

Parameters:
storageService - service used to store session
storageParition - partition in which sessions are stored
lifetime - lifetime, in milliseconds, of sessions
Method Detail

createSession

public Session createSession()

Specified by:
createSession in interface edu.internet2.middleware.shibboleth.common.session.SessionManager<Session>

createSession

public Session createSession(String principal)

Specified by:
createSession in interface edu.internet2.middleware.shibboleth.common.session.SessionManager<Session>

destroySession

public void destroySession(String sessionID)

Specified by:
destroySession in interface edu.internet2.middleware.shibboleth.common.session.SessionManager<Session>

getSession

public Session getSession(String sessionID)

Specified by:
getSession in interface edu.internet2.middleware.shibboleth.common.session.SessionManager<Session>

indexSession

public boolean indexSession(Session session,
                            String index)

Specified by:
indexSession in interface edu.internet2.middleware.shibboleth.common.session.SessionManager<Session>

onApplicationEvent

public void onApplicationEvent(ApplicationEvent event)

Specified by:
onApplicationEvent in interface ApplicationListener

removeSessionIndex

public void removeSessionIndex(String index)

Specified by:
removeSessionIndex in interface edu.internet2.middleware.shibboleth.common.session.SessionManager<Session>

setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)

Specified by:
setApplicationContext in interface ApplicationContextAware


Copyright © 2006-2009 Internet2. All Rights Reserved.