public class HudsonFilter extends Object implements javax.servlet.Filter
Filter that Jenkins uses to implement security support.
This is the instance the servlet container creates, but
internally this just acts as a proxy to the real Filter,
created by SecurityRealm.createFilter(FilterConfig).
| Modifier and Type | Field and Description |
|---|---|
static AuthenticationManagerProxy |
AUTHENTICATION_MANAGER
Deprecated.
in 1.271.
This proxy always delegate to
Hudson.getInstance().getSecurityRealm().getSecurityComponents().manager,
so use that instead. |
static RememberMeServicesProxy |
REMEMBER_ME_SERVICES_PROXY
Deprecated.
in 1.271.
This proxy always delegate to
Hudson.getInstance().getSecurityRealm().getSecurityComponents().rememberMe,
so use that instead. |
static UserDetailsServiceProxy |
USER_DETAILS_SERVICE_PROXY
Deprecated.
in 1.271.
This proxy always delegate to
Hudson.getInstance().getSecurityRealm().getSecurityComponents().userDetails,
so use that instead. |
| Constructor and Description |
|---|
HudsonFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
static HudsonFilter |
get(javax.servlet.ServletContext context)
Gets the
HudsonFilter created for the given ServletContext. |
void |
init(javax.servlet.FilterConfig filterConfig) |
void |
reset(SecurityRealm securityRealm)
Reset the proxies and filter for a change in
SecurityRealm. |
@Deprecated public static final AuthenticationManagerProxy AUTHENTICATION_MANAGER
Hudson.getInstance().getSecurityRealm().getSecurityComponents().manager,
so use that instead.AuthenticationManager proxy so that the acegi filter chain can stay the same
even when security setting is reconfigured.@Deprecated public static final UserDetailsServiceProxy USER_DETAILS_SERVICE_PROXY
Hudson.getInstance().getSecurityRealm().getSecurityComponents().userDetails,
so use that instead.UserDetailsService proxy so that the acegi filter chain can stay the same
even when security setting is reconfigured.@Deprecated public static final RememberMeServicesProxy REMEMBER_ME_SERVICES_PROXY
Hudson.getInstance().getSecurityRealm().getSecurityComponents().rememberMe,
so use that instead.RememberMeServices proxy so that the acegi filter chain can stay the same
even when security setting is reconfigured.public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic static HudsonFilter get(javax.servlet.ServletContext context)
HudsonFilter created for the given ServletContext.public void reset(SecurityRealm securityRealm) throws javax.servlet.ServletException
SecurityRealm.javax.servlet.ServletExceptionpublic void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOExceptionjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.FilterCopyright © 2019. All rights reserved.