|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restafarian.core.security.CookieBasedUserManager
public class CookieBasedUserManager
This module finds and returns the currently authenticated user by returning the user identified in a cookie.
| Constructor Summary | |
|---|---|
CookieBasedUserManager()
|
|
| Method Summary | |
|---|---|
Person |
getAuthenticatedUser(javax.servlet.http.HttpServletRequest req)
Returns the currently authenticated user, or null, if there is no user currently authenticated. |
void |
init(javax.servlet.ServletContext context,
org.apache.commons.configuration.Configuration config)
Initializes the module using the configuration. |
void |
setAuthenticatedUser(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
Person user)
Sets the currently authenticated user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CookieBasedUserManager()
| Method Detail |
|---|
public void init(javax.servlet.ServletContext context,
org.apache.commons.configuration.Configuration config)
Initializes the module using the configuration.
init in interface UserManagercontext - the ServletContext objectconfig - the Configuration objectpublic Person getAuthenticatedUser(javax.servlet.http.HttpServletRequest req)
Returns the currently authenticated user, or null, if there is no user currently authenticated.
getAuthenticatedUser in interface UserManagerreq - the HttpServletRequest object
public void setAuthenticatedUser(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
Person user)
Sets the currently authenticated user.
setAuthenticatedUser in interface UserManagerreq - the HttpServletRequest objectres - the HttpServletResponse objectuser - the currently authenticated user
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||