public class CommunoteRememberMeServices
extends org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices
| Constructor and Description |
|---|
CommunoteRememberMeServices(String key,
org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
makeTokenSignature(long tokenExpiryTime,
String username,
String password)
Returns a specific authentication token for the user, instead of a combination of time and
password.
|
void |
onLoginSuccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication successfulAuthentication)
This implementation skips the password check, as we don't work with the password.
|
protected String |
retrieveUserName(org.springframework.security.core.Authentication authentication) |
calculateLoginLifetime, isTokenExpired, processAutoLoginCookie, retrievePasswordafterPropertiesSet, autoLogin, cancelCookie, createSuccessfulAuthentication, decodeCookie, encodeCookie, extractRememberMeCookie, getAuthenticationDetailsSource, getCookieName, getKey, getParameter, getTokenValiditySeconds, getUserDetailsService, loginFail, loginSuccess, logout, onLoginFail, rememberMeRequested, setAlwaysRemember, setAuthenticationDetailsSource, setAuthoritiesMapper, setCookie, setCookieName, setKey, setParameter, setTokenValiditySeconds, setUserDetailsChecker, setUserDetailsService, setUseSecureCookiepublic CommunoteRememberMeServices(String key, org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
key - An key.userDetailsService - The UserDetailsService for getting users.protected String makeTokenSignature(long tokenExpiryTime, String username, String password)
makeTokenSignature in class org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServicespublic void onLoginSuccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication successfulAuthentication)
onLoginSuccess in class org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServicesprotected String retrieveUserName(org.springframework.security.core.Authentication authentication)
retrieveUserName in class org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServicesCopyright © 2019 Communote team. All rights reserved.