org.jasig.cas.client.jaas
Class Servlet3AuthenticationFilter

java.lang.Object
  extended by org.jasig.cas.client.util.AbstractConfigurationFilter
      extended by org.jasig.cas.client.util.AbstractCasFilter
          extended by org.jasig.cas.client.jaas.Servlet3AuthenticationFilter
All Implemented Interfaces:
javax.servlet.Filter

public final class Servlet3AuthenticationFilter
extends AbstractCasFilter

Servlet filter performs a programmatic JAAS login using the Servlet 3.0 HttpServletRequest#login() facility. This component should be compatible with any servlet container that supports the Servlet 3.0/JEE6 specification.

The filter executes when it receives a CAS ticket and expects the CasLoginModule JAAS module to perform the CAS ticket validation in order to produce an AssertionPrincipal from which the CAS assertion is obtained and inserted into the session to enable SSO.

If a service init-param is specified for this filter, it supersedes the service defined for the CasLoginModule.

Since:
3.3
Author:
Daniel Fisher, Marvin S. Addison

Field Summary
 
Fields inherited from class org.jasig.cas.client.util.AbstractCasFilter
CONST_CAS_ASSERTION
 
Fields inherited from class org.jasig.cas.client.util.AbstractConfigurationFilter
logger
 
Constructor Summary
Servlet3AuthenticationFilter()
           
 
Method Summary
 void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain chain)
           
 
Methods inherited from class org.jasig.cas.client.util.AbstractCasFilter
constructServiceUrl, destroy, getProtocol, init, init, initInternal, retrieveTicketFromRequest, setEncodeServiceUrl, setServerName, setService
 
Methods inherited from class org.jasig.cas.client.util.AbstractConfigurationFilter
getBoolean, getClass, getInt, getLong, getString, isIgnoreInitConfiguration, setIgnoreInitConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Servlet3AuthenticationFilter

public Servlet3AuthenticationFilter()
Method Detail

doFilter

public void doFilter(javax.servlet.ServletRequest servletRequest,
                     javax.servlet.ServletResponse servletResponse,
                     javax.servlet.FilterChain chain)
              throws IOException,
                     javax.servlet.ServletException
Throws:
IOException
javax.servlet.ServletException


Copyright © 2006-2015 Jasig. All Rights Reserved.