org.eclipse.higgins.rp.servlet.server
Class AuthNFilter
java.lang.Object
org.eclipse.higgins.rp.servlet.server.AuthNFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class AuthNFilter
- extends Object
- implements javax.servlet.Filter
Authentication filter This is an authentication filter for relying party
applications. The filter checks to see if a token is found in the session
(indicating that a sucessful authentication has already taken place.) The
filter and the web pages that require authentication are specified in the
web.xml file for the application. The URL of the protected resource is
invoked a few times during the authentication process. Each time the
authenticaton process is in a different state. The filter sets the initial
authentication state. The state is advanced inside the invoker class.
- Author:
- Paula Austel
|
Method Summary |
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain fChain)
|
static String |
getNextAuthSession()
|
static void |
handleConcurrentRequest(String authSession,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
void |
init(javax.servlet.FilterConfig arg0)
|
AuthNFilter
public AuthNFilter()
getNextAuthSession
public static final String getNextAuthSession()
destroy
public void destroy()
- Specified by:
destroy in interface javax.servlet.Filter
init
public void init(javax.servlet.FilterConfig arg0)
throws javax.servlet.ServletException
- Specified by:
init in interface javax.servlet.Filter
- Throws:
javax.servlet.ServletException
doFilter
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain fChain)
throws IOException,
javax.servlet.ServletException
- Specified by:
doFilter in interface javax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
handleConcurrentRequest
public static void handleConcurrentRequest(String authSession,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)