Package hudson.security
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
-
Method Summary
Modifier and TypeMethodDescriptionorg.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)
-
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 interfaceorg.springframework.security.web.authentication.RememberMeServices
-
loginFail
public void loginFail(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) - Specified by:
loginFail
in interfaceorg.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 interfaceorg.springframework.security.web.authentication.RememberMeServices
-
setDelegate
public void setDelegate(org.springframework.security.web.authentication.RememberMeServices delegate)
-