Class RememberMeServicesProxy

java.lang.Object
hudson.security.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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.core.Authentication
    autoLogin(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
     
    void
    loginFail(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
     
    void
    loginSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication successfulAuthentication)
     
    void
    setDelegate(org.springframework.security.web.authentication.RememberMeServices delegate)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RememberMeServicesProxy

      public RememberMeServicesProxy()
  • Method Details

    • autoLogin

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

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

      public void loginSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.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)