|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.arsdigita.acs.Security
Utility procedures for verifying user log-in information.
UserInfo
Constructor Summary | |
Security()
|
Method Summary | |
static UserInfo |
getVerifiedUserInfo(HttpServletRequest req,
HttpServletResponse resp)
Same as getVerifiedUserInfo(req, resp, true) |
static UserInfo |
getVerifiedUserInfo(HttpServletRequest req,
HttpServletResponse resp,
boolean redirect)
Checks the current HttpSession for a set UserInfo object. |
static UserInfo |
getVerifiedUserInfo(PageContext pc)
Same as getVerifiedUserInfo(pc, true). |
static UserInfo |
getVerifiedUserInfo(PageContext pc,
boolean redirect)
Checks the current HttpSession for a set UserInfo object. |
static void |
loginUser(PageContext pc,
Integer userId,
boolean forever)
|
static void |
logoutUser(PageContext pc)
Logs out the user. |
static void |
redirectForRegistration(HttpServletRequest request,
HttpServletResponse response)
Redirects to /register. |
static void |
redirectForRegistration(PageContext pc)
Redirects to /register. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public Security()
Method Detail |
public static UserInfo getVerifiedUserInfo(PageContext pc, boolean redirect) throws IOException
UserInfo
object.
This object will be non-null if and only if the user has not already
logged in. Redirects to /acs/register if the user is not yet
logged in and redirect is true. Otherwise returns null.
Must be called from a JSP tag class.pc
- The current page contextredirect
- If true, redirects to the registration page if
the user is not yet logged in.UserInfo
object for the logged-in user,
or null if the user is not yet logged in.public static UserInfo getVerifiedUserInfo(PageContext pc) throws IOException
public static final void redirectForRegistration(PageContext pc) throws IOException
public static final void redirectForRegistration(HttpServletRequest request, HttpServletResponse response) throws IOException
public static void logoutUser(PageContext pc)
public static void loginUser(PageContext pc, Integer userId, boolean forever) throws SQLException, ACSException
public static UserInfo getVerifiedUserInfo(HttpServletRequest req, HttpServletResponse resp, boolean redirect) throws IOException
UserInfo
object.
This object will be non-null if and only if the user has not already
logged in. Redirects to /register if the user is not yet
logged in and redirect is true.req
- The current servlet requestresp
- The curent servlet responseredirect
- If false, return null for not-logged-in user;
if true, redirect for registration.UserInfo
object for the logged-in user,
or null if the user is not yet logged in.public static UserInfo getVerifiedUserInfo(HttpServletRequest req, HttpServletResponse resp) throws IOException
getVerifiedUserInfo(req, resp, true)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |