org.eaglei.ui.gwt.security.server
Class SessionManager

java.lang.Object
  extended by org.eaglei.ui.gwt.security.server.SessionManager

public class SessionManager
extends java.lang.Object


Field Summary
static long EXPIRE_TIME
           
 
Constructor Summary
SessionManager()
           
 
Method Summary
static java.lang.String addSession(javax.servlet.http.HttpServletResponse response)
           
static void authenticate(java.lang.String username, java.lang.String password)
           
static void checkHttps(javax.servlet.http.HttpServletRequest request)
           
static java.util.List<java.lang.String> removeExpiredSessions()
          Returns the set of expired session ids.
static void removeSession(javax.servlet.http.HttpServletRequest request)
           
static void removeSession(java.lang.String sessionId)
           
static void validate(javax.servlet.http.HttpServletRequest request)
           
static void validate(java.lang.String sessionId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXPIRE_TIME

public static final long EXPIRE_TIME
See Also:
Constant Field Values
Constructor Detail

SessionManager

public SessionManager()
Method Detail

checkHttps

public static void checkHttps(javax.servlet.http.HttpServletRequest request)
                       throws InvalidSessionIdException
Throws:
InvalidSessionIdException

authenticate

public static void authenticate(java.lang.String username,
                                java.lang.String password)
                         throws InvalidSessionIdException
Throws:
InvalidSessionIdException

addSession

public static java.lang.String addSession(javax.servlet.http.HttpServletResponse response)

removeSession

public static void removeSession(javax.servlet.http.HttpServletRequest request)

removeSession

public static void removeSession(java.lang.String sessionId)

removeExpiredSessions

public static java.util.List<java.lang.String> removeExpiredSessions()
Returns the set of expired session ids.

Returns:

validate

public static void validate(javax.servlet.http.HttpServletRequest request)
                     throws InvalidSessionIdException
Throws:
InvalidSessionIdException

validate

public static void validate(java.lang.String sessionId)
                     throws InvalidSessionIdException
Throws:
InvalidSessionIdException


Copyright © 2009-2011 Eagle-I. All Rights Reserved.