Class CockpitRememberMeService

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean, org.springframework.security.web.authentication.logout.LogoutHandler, org.springframework.security.web.authentication.RememberMeServices

    @Deprecated
    public class CockpitRememberMeService
    extends CoreRememberMeService
    Deprecated.
    since 6.3
    Class which is responsible for Remember me auto logins and Single sign on login as well CAUTION: This is class is deprecated! See https://jira.hybris.com/browse/PLA-9864 Generally it's not a good idea to have to separated "remember me token cookies". Instead of this, you should prefer to configure your cockpit-spring-security.xml like that:
    • Field Detail

      • SSO_COOKIE

        public static final java.lang.String SSO_COOKIE
        Deprecated.
        See Also:
        Constant Field Values
      • SSO_COOKIE_PATTERN

        public static final java.lang.String SSO_COOKIE_PATTERN
        Deprecated.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CockpitRememberMeService

        public CockpitRememberMeService()
        Deprecated.
    • Method Detail

      • loginSuccess

        public final void loginSuccess​(javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response,
                                       org.springframework.security.core.Authentication successfulAuthentication)
        Deprecated.
        Examines the incoming request and checks if to set Single Sign On cookie.
        Specified by:
        loginSuccess in interface org.springframework.security.web.authentication.RememberMeServices
        Overrides:
        loginSuccess in class CoreRememberMeService
      • processAutoLoginCookie

        public org.springframework.security.core.userdetails.UserDetails processAutoLoginCookie​(LoginToken token,
                                                                                                javax.servlet.http.HttpServletRequest request,
                                                                                                javax.servlet.http.HttpServletResponse response)
        Deprecated.
        Overrides:
        processAutoLoginCookie in class CoreRememberMeService
      • autoLogin

        public org.springframework.security.core.Authentication autoLogin​(javax.servlet.http.HttpServletRequest request,
                                                                          javax.servlet.http.HttpServletResponse response)
        Deprecated.
        Specified by:
        autoLogin in interface org.springframework.security.web.authentication.RememberMeServices
        Overrides:
        autoLogin in class CoreRememberMeService
      • cancelCookie

        protected void cancelCookie​(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response)
        Deprecated.
        Description copied from class: CoreRememberMeService
        Sets a "cancel cookie" (with maxAge = 0) on the response to disable persistent logins.
        Overrides:
        cancelCookie in class CoreRememberMeService