public class NoopRememberMeService extends Object implements RememberMeService
| Modifier and Type | Field and Description |
|---|---|
static NoopRememberMeService |
INSTANCE |
| 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
|
public static final NoopRememberMeService INSTANCE
public void addRememberMeCookie(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String authenticatedUsername)
RememberMeServiceaddRememberMeCookie in interface RememberMeServicehttpServletRequest - the request in playhttpServletResponse - the response in playauthenticatedUsername - the name of the user to generate the remember me cookie forpublic void removeRememberMeCookie(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
RememberMeServiceremoveRememberMeCookie in interface RememberMeServicehttpServletRequest - the request in playhttpServletResponse - the response in playpublic String getRememberMeCookieAuthenticatedUsername(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
RememberMeServiceIf 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
getRememberMeCookieAuthenticatedUsername in interface RememberMeServicehttpServletRequest - the request in playhttpServletResponse - the response in playCopyright © 2018 Atlassian. All rights reserved.