public interface RememberMeService
| Modifier and Type | Method and Description |
|---|---|
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
|
String getRememberMeCookieAuthenticatedUsername(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
If the cookie is not present, its token doe not match anything or it has expired, then null will be returned and any presented remember me cookie in the client will be removed.
Otherwise a user name is returned, indicating that the underlying application knows about the user
httpServletRequest - the request in playhttpServletResponse - the response in playvoid 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 playCopyright © 2018 Atlassian. All rights reserved.