org.eaglei.ui.gwt.security.server
Class SessionManager
java.lang.Object
org.eaglei.ui.gwt.security.server.SessionManager
public class SessionManager
- extends java.lang.Object
|
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 |
EXPIRE_TIME
public static final long EXPIRE_TIME
- See Also:
- Constant Field Values
SessionManager
public SessionManager()
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-2010 Eagle-I. All Rights Reserved.