| Constructor and Description |
|---|
SessionHelper() |
| Modifier and Type | Method and Description |
|---|---|
static BrowserId |
getBrowserId(Session session) |
static boolean |
isLoggedIn(Session session) |
static void |
logIn(Session session,
BrowserId browserId)
Stores the authentication data in the current web session
|
static void |
logOut(Session session)
Removes the authentication data from the current web session
|
public static BrowserId getBrowserId(Session session)
session - the current web sessionnull.public static boolean isLoggedIn(Session session)
session - the current web sessiontrue if there is authentication data. false - otherwise.public static void logIn(Session session, BrowserId browserId)
session - the current web sessionbrowserId - the authentication datapublic static void logOut(Session session)
session - the current web sessionCopyright © 2012. All Rights Reserved.