com.niggle.data
Interface SessionManager

All Superinterfaces:
DataSource, java.rmi.Remote
All Known Implementing Classes:
SimpleSessionManager

public interface SessionManager
extends DataSource

A class that represents an object that creates, vends, and validates sessions.

Author:
Jonathan Revusky
See Also:
Session, SimpleSessionManager

Method Summary
 boolean invalidateSession(java.lang.String sessionID)
           
 boolean isValidSession(java.lang.String sessionID, java.lang.String username)
           
 Session newSession(java.lang.String username)
           
 void touchSession(java.lang.String sessionID)
           
 
Methods inherited from interface com.niggle.data.DataSource
close, get, get, getName, getRecords, init, keys, keys
 

Method Detail

invalidateSession

public boolean invalidateSession(java.lang.String sessionID)
                          throws java.io.IOException

touchSession

public void touchSession(java.lang.String sessionID)
                  throws java.io.IOException

isValidSession

public boolean isValidSession(java.lang.String sessionID,
                              java.lang.String username)
                       throws java.io.IOException

newSession

public Session newSession(java.lang.String username)
                   throws java.io.IOException