Class RememberMeServicesProxy

  • All Implemented Interfaces:
    org.springframework.security.web.authentication.RememberMeServices

    @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
    public class RememberMeServicesProxy
    extends Object
    implements org.springframework.security.web.authentication.RememberMeServices
    RememberMeServices proxy.

    In Jenkins, we need Jenkins instance to perform remember-me service, because it relies on ConfidentialStore. However, security filters can be initialized before Jenkins is initialized. (See JENKINS-1210 for example.)

    So to work around the problem, we use a proxy.

    Author:
    Kohsuke Kawaguchi
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.security.core.Authentication autoLogin​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      void loginFail​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      void loginSuccess​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication successfulAuthentication)  
      void setDelegate​(org.springframework.security.web.authentication.RememberMeServices delegate)  
    • Constructor Detail

      • RememberMeServicesProxy

        public RememberMeServicesProxy()
    • Method Detail

      • autoLogin

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

        public void loginFail​(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)
        Specified by:
        loginFail in interface org.springframework.security.web.authentication.RememberMeServices
      • loginSuccess

        public void loginSuccess​(javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response,
                                 org.springframework.security.core.Authentication successfulAuthentication)
        Specified by:
        loginSuccess in interface org.springframework.security.web.authentication.RememberMeServices
      • setDelegate

        public void setDelegate​(org.springframework.security.web.authentication.RememberMeServices delegate)