Class ProfileRememberMeServices
- java.lang.Object
-
- org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices
-
- org.craftercms.engine.util.spring.security.profile.ProfileRememberMeServices
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.MessageSourceAware
,org.springframework.security.web.authentication.logout.LogoutHandler
,org.springframework.security.web.authentication.RememberMeServices
public class ProfileRememberMeServices extends org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices
Implementation ofAbstractRememberMeServices
for Profile- Since:
- 3.1.5
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected org.craftercms.profile.api.services.AuthenticationService
authenticationService
-
Constructor Summary
Constructors Constructor Description ProfileRememberMeServices(String key, org.springframework.security.core.userdetails.UserDetailsService userDetailsService, org.craftercms.profile.api.services.AuthenticationService authenticationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
logout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)
protected void
onLoginSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication successfulAuthentication)
protected org.springframework.security.core.userdetails.UserDetails
processAutoLoginCookie(String[] cookieTokens, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
Methods inherited from class org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices
afterPropertiesSet, autoLogin, cancelCookie, createSuccessfulAuthentication, decodeCookie, encodeCookie, extractRememberMeCookie, getAuthenticationDetailsSource, getCookieName, getKey, getParameter, getTokenValiditySeconds, getUserDetailsService, loginFail, loginSuccess, onLoginFail, rememberMeRequested, setAlwaysRemember, setAuthenticationDetailsSource, setAuthoritiesMapper, setCookie, setCookieDomain, setCookieName, setMessageSource, setParameter, setTokenValiditySeconds, setUserDetailsChecker, setUseSecureCookie
-
-
-
-
Constructor Detail
-
ProfileRememberMeServices
@ConstructorProperties({"key","userDetailsService","authenticationService"}) public ProfileRememberMeServices(String key, org.springframework.security.core.userdetails.UserDetailsService userDetailsService, org.craftercms.profile.api.services.AuthenticationService authenticationService)
-
-
Method Detail
-
onLoginSuccess
protected void onLoginSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication successfulAuthentication)
- Specified by:
onLoginSuccess
in classorg.springframework.security.web.authentication.rememberme.AbstractRememberMeServices
-
logout
public void logout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)
- Specified by:
logout
in interfaceorg.springframework.security.web.authentication.logout.LogoutHandler
- Overrides:
logout
in classorg.springframework.security.web.authentication.rememberme.AbstractRememberMeServices
-
processAutoLoginCookie
protected org.springframework.security.core.userdetails.UserDetails processAutoLoginCookie(String[] cookieTokens, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationException, org.springframework.security.core.userdetails.UsernameNotFoundException
- Specified by:
processAutoLoginCookie
in classorg.springframework.security.web.authentication.rememberme.AbstractRememberMeServices
- Throws:
org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationException
org.springframework.security.core.userdetails.UsernameNotFoundException
-
-