|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.appengine.api.users.dev.LoginCookieUtils
public final class LoginCookieUtils
LoginCookieUtils encapsulates the creation, deletion, and
parsing of the fake authentication cookie used by the Development
Appserver to simulate login.
| Nested Class Summary | |
|---|---|
static class |
LoginCookieUtils.CookieData
CookieData encapsulates all of the data contained in the
fake authentication cookie. |
| Method Summary | |
|---|---|
static javax.servlet.http.Cookie |
createCookie(java.lang.String email,
boolean isAdmin)
Create a fake authentication Cookie with the specified data. |
static LoginCookieUtils.CookieData |
getCookieData(javax.servlet.http.HttpServletRequest req)
Parse the fake authentication Cookie. |
static void |
removeCookie(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Remove the fake authentication Cookie, if present. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static javax.servlet.http.Cookie createCookie(java.lang.String email,
boolean isAdmin)
Cookie with the specified data.
public static void removeCookie(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Cookie, if present.
public static LoginCookieUtils.CookieData getCookieData(javax.servlet.http.HttpServletRequest req)
Cookie.
LoginCookieUtils.CookieData, or null if the
user is not logged in.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||