|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restafarian.core.security.AuthenticatedUserManager
public class AuthenticatedUserManager
This module finds and returns the currently authenticated user.
| Constructor Summary | |
|---|---|
AuthenticatedUserManager()
|
|
| Method Summary | |
|---|---|
static Person |
getAuthenticatedUser(javax.servlet.http.HttpServletRequest req)
Returns the currently authenticated user, or null, if there is no user currently authenticated. |
static 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 AuthenticatedUserManager()
| Method Detail |
|---|
public static void init(javax.servlet.ServletContext context,
org.apache.commons.configuration.Configuration config)
Initializes the module using the configuration.
context - the ServletContext objectconfig - the Configuration objectpublic static Person getAuthenticatedUser(javax.servlet.http.HttpServletRequest req)
Returns the currently authenticated user, or null, if there is no user currently authenticated.
req - the HttpServletRequest object
public void setAuthenticatedUser(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
Person user)
Sets the currently authenticated user.
req - 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 | |||||||||