public class CoreRememberMeService extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AuthenticationDetailsSource |
authenticationDetailsSource |
static String |
DEFAULT_PARAMETER |
protected MessageSourceAccessor |
messages |
static String |
SPRING_SECURITY_REMEMBER_ME_COOKIE_KEY |
protected UserDetailsChecker |
userDetailsChecker |
| Constructor and Description |
|---|
CoreRememberMeService() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
Authentication |
autoLogin(HttpServletRequest request,
HttpServletResponse response) |
protected void |
cancelCookie(HttpServletRequest request,
HttpServletResponse response)
Sets a "cancel cookie" (with maxAge = 0) on the response to disable persistent logins.
|
protected String |
getCookieName() |
String |
getDomain() |
String |
getKey() |
String |
getPath(HttpServletRequest request) |
int |
getTtl() |
boolean |
isSecure() |
void |
loginFail(HttpServletRequest request,
HttpServletResponse response) |
void |
loginSuccess(HttpServletRequest request,
HttpServletResponse response,
Authentication successfulAuthentication)
Examines the incoming request and checks for the presence of the configured "remember me" parameter.
|
void |
logout(HttpServletRequest request,
HttpServletResponse response,
Authentication authentication)
Implementation of LogoutHandler.
|
protected UserDetailsService |
lookupUserDetailsService() |
protected void |
onLoginFail(HttpServletRequest request,
HttpServletResponse response) |
void |
onLoginSuccess(HttpServletRequest request,
HttpServletResponse response,
Authentication successfulAuthentication) |
UserDetails |
processAutoLoginCookie(LoginToken token,
HttpServletRequest request,
HttpServletResponse response) |
protected boolean |
rememberMeRequested(HttpServletRequest request,
String parameter) |
void |
setCookieName(String cookieName) |
void |
setDomain(String domain) |
void |
setKey(String key) |
void |
setPath(String path) |
void |
setSecure(boolean secure) |
void |
setTtl(int ttl) |
public static final String DEFAULT_PARAMETER
public static final String SPRING_SECURITY_REMEMBER_ME_COOKIE_KEY
protected MessageSourceAccessor messages
protected final UserDetailsChecker userDetailsChecker
protected final AuthenticationDetailsSource authenticationDetailsSource
public void onLoginSuccess(HttpServletRequest request,
HttpServletResponse response,
Authentication successfulAuthentication)
throws EJBPasswordEncoderNotFoundException
public UserDetails processAutoLoginCookie(LoginToken token, HttpServletRequest request, HttpServletResponse response)
public Authentication autoLogin(HttpServletRequest request,
HttpServletResponse response)
public String getPath(HttpServletRequest request)
public void setPath(String path)
path - the path to setpublic boolean isSecure()
public void setSecure(boolean secure)
secure - the secure to setpublic int getTtl()
public void setTtl(int ttl)
ttl - the ttl to setpublic String getDomain()
public void setDomain(String domain)
domain - the domain to setpublic void setCookieName(String cookieName)
protected String getCookieName()
protected UserDetailsService lookupUserDetailsService()
protected void cancelCookie(HttpServletRequest request,
HttpServletResponse response)
request - response - public void logout(HttpServletRequest request,
HttpServletResponse response,
Authentication authentication)
public final void loginFail(HttpServletRequest request,
HttpServletResponse response)
protected boolean rememberMeRequested(HttpServletRequest request,
String parameter)
protected void onLoginFail(HttpServletRequest request,
HttpServletResponse response)
public void loginSuccess(HttpServletRequest request,
HttpServletResponse response,
Authentication successfulAuthentication)
public String getKey()
public void setKey(String key)
key - the key to setCopyright © 2017 SAP SE. All Rights Reserved.