toolbox.opensso.web
Class OpenSSOFilter

java.lang.Object
  extended by toolbox.opensso.web.OpenSSOFilter
All Implemented Interfaces:
javax.servlet.Filter

public class OpenSSOFilter
extends java.lang.Object
implements javax.servlet.Filter

Filter implementation to provide access to user identity attributes within HttpSession scope and to optionally manage the HttpSession lifecycle.

Author:
Hannes Holtzhausen

Constructor Summary
OpenSSOFilter()
          Default constructor
 
Method Summary
 void destroy()
          Not implemented.
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
          Perform SSOToken and HttpSession validation and supplement HttpSession with required user attributes if necessary.
 void init(javax.servlet.FilterConfig config)
          Initialise this filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenSSOFilter

public OpenSSOFilter()
Default constructor

Method Detail

init

public void init(javax.servlet.FilterConfig config)
          throws javax.servlet.ServletException
Initialise this filter.

Specified by:
init in interface javax.servlet.Filter
Parameters:
config - Filter configuration properties.
Throws:
javax.servlet.ServletException - if the filter cannot be initialised.

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     javax.servlet.FilterChain chain)
              throws javax.servlet.ServletException,
                     java.io.IOException
Perform SSOToken and HttpSession validation and supplement HttpSession with required user attributes if necessary.

Specified by:
doFilter in interface javax.servlet.Filter
Parameters:
request - ServletRequest received.
response - ServletResponse that will be used to respond if required.
chain - The FilterChain this filter belongs to.
Throws:
javax.servlet.ServletException
java.io.IOException

destroy

public void destroy()
Not implemented.

Specified by:
destroy in interface javax.servlet.Filter