|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.security.HudsonFilter
public class HudsonFilter
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).
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
HudsonFilter()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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.
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.
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.
| Constructor Detail |
|---|
public HudsonFilter()
| Method Detail |
|---|
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.ServletException
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOException
javax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Filter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||