|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RememberMeService
The RememberMeService is the top level entry point for getting and setting remember me cookies
Method Summary | |
---|---|
void |
addRememberMeCookie(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String authenticatedUsername)
This can be called to generate and save a remember me cookie with the application and send it back to the client |
String |
getRememberMeCookieAuthenticatedUsername(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
This method can be called to try and authenticate a user name from a remember me cookie. |
void |
removeRememberMeCookie(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
This will remove any remember me cookie that may have been presented by the client |
Method Detail |
---|
String getRememberMeCookieAuthenticatedUsername(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
httpServletRequest
- the request in playhttpServletResponse
- the response in play
void addRememberMeCookie(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String authenticatedUsername)
httpServletRequest
- the request in playhttpServletResponse
- the response in playauthenticatedUsername
- the name of the user to generate the remember me cookie forvoid removeRememberMeCookie(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
httpServletRequest
- the request in playhttpServletResponse
- the response in play
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |