de.theit.hudson.crowd
Class CrowdServletFilter
java.lang.Object
de.theit.hudson.crowd.CrowdServletFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class CrowdServletFilter
- extends Object
- implements javax.servlet.Filter
This class realizes a servlet filter that checks on each request the status
of the SSO session. If the session isn't valid anymore, the user is logged
out automatically, and vice-versa: If there's a SSO session but the user
isn't logged in into Hudson / Jenkins, (s)he is automatically logged in.
- Since:
- 09.09.2011
- Version:
- $Id$
- Author:
- Thorsten Heit (theit@gmx.de)
|
Method Summary |
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
|
void |
init(javax.servlet.FilterConfig filterConfig)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CrowdServletFilter
public CrowdServletFilter(CrowdSecurityRealm pSecurityRealm,
CrowdConfigurationService pConfiguration,
javax.servlet.Filter pDefaultFilter)
- Creates a new instance of this class.
- Parameters:
pSecurityRealm - The Crowd security realm. Necessary for logging out users when
the SSO session isn't valid anymore. May not be
null.pConfiguration - The configuration to access the services on the remote Crowd
server. May not be null.pDefaultFilter - The default filter to use when the Crowd security filter is
not used during runtime. May not be null.
init
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
-
- Specified by:
init in interface javax.servlet.Filter
- Throws:
javax.servlet.ServletException- See Also:
Filter.init(javax.servlet.FilterConfig)
doFilter
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
-
- Specified by:
doFilter in interface javax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException- See Also:
Filter.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse, javax.servlet.FilterChain)
destroy
public void destroy()
-
- Specified by:
destroy in interface javax.servlet.Filter
- See Also:
Filter.destroy()
Copyright © 2004-2011 Hudson. All Rights Reserved.