|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.seraph.service.rememberme.DefaultRememberMeService
public class DefaultRememberMeService
This default RememberMeService needs to have a certain SPI implementations into it so that it can function. This is what the application needs to provide. Most of the other default implementations can be used as is.
Constructor Summary | |
---|---|
DefaultRememberMeService(RememberMeConfiguration rememberMeConfiguration,
RememberMeTokenDao rememberMeTokenDao,
RememberMeTokenGenerator rememberMeTokenGenerator)
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultRememberMeService(RememberMeConfiguration rememberMeConfiguration, RememberMeTokenDao rememberMeTokenDao, RememberMeTokenGenerator rememberMeTokenGenerator)
Method Detail |
---|
public String getRememberMeCookieAuthenticatedUsername(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
RememberMeService
getRememberMeCookieAuthenticatedUsername
in interface RememberMeService
httpServletRequest
- the request in playhttpServletResponse
- the response in play
public void addRememberMeCookie(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String authenticatedUsername)
RememberMeService
addRememberMeCookie
in interface RememberMeService
httpServletRequest
- 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)
RememberMeService
removeRememberMeCookie
in interface RememberMeService
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 |