Class CockpitRememberMeService

java.lang.Object
de.hybris.platform.spring.security.CoreRememberMeService
de.hybris.platform.cockpit.security.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: <security:intercept-url pattern="/mycockpit/*" access=ROLE_COCKPITUSER"/>
  • Field Details

  • Constructor Details

    • CockpitRememberMeService

      public CockpitRememberMeService()
      Deprecated.
  • Method Details

    • 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