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 onConfidentialStore
. 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 RememberMeServicesProxy()
-
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)
-
-
-
Method Detail
-
autoLogin
public org.springframework.security.core.Authentication autoLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
- Specified by:
autoLogin
in interfaceorg.springframework.security.web.authentication.RememberMeServices
-
loginFail
public void loginFail(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
- Specified by:
loginFail
in interfaceorg.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 interfaceorg.springframework.security.web.authentication.RememberMeServices
-
setDelegate
public void setDelegate(org.springframework.security.web.authentication.RememberMeServices delegate)
-
-