Package uk.ac.warwick.sso.client
Class ForceOldModeFilter
- java.lang.Object
-
- uk.ac.warwick.sso.client.ForceOldModeFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class ForceOldModeFilter extends java.lang.Object implements javax.servlet.FilterThis filter only makes sense if you are using a new-mode application. By mapping this filter to certain URLs, it will cause SSOClientFilter to use old-mode authentication (i.e. just checking the shared WarwickSSO cookie) instead of new-mode. Most people shouldn't need this most of the time, but here it is in case you do.The mapping should be before the mapping for
SSOClientFilter, otherwise it will be too late.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringALLOW_OLD_KEY
-
Constructor Summary
Constructors Constructor Description ForceOldModeFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voiddoFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain)voidinit(javax.servlet.FilterConfig config)
-
-
-
Field Detail
-
ALLOW_OLD_KEY
public static final java.lang.String ALLOW_OLD_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
destroy
public void destroy()
- Specified by:
destroyin interfacejavax.servlet.Filter
-
doFilter
public final void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException- Specified by:
doFilterin interfacejavax.servlet.Filter- Throws:
java.io.IOExceptionjavax.servlet.ServletException
-
init
public final void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException- Specified by:
initin interfacejavax.servlet.Filter- Throws:
javax.servlet.ServletException
-
-