org.jasig.cas.client.authentication
Class AuthenticationFilter

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.authentication.AuthenticationFilter
All Implemented Interfaces:
javax.servlet.Filter

public class AuthenticationFilter
extends AbstractCasFilter

Filter implementation to intercept all requests and attempt to authenticate the user by redirecting them to CAS (unless the user has a ticket).

This filter allows you to specify the following parameters (at either the context-level or the filter-level):

Please see AbstractCasFilter for additional properties.

Since:
3.0
Version:
$Revision: 11768 $ $Date: 2007-02-07 15:44:16 -0500 (Wed, 07 Feb 2007) $
Author:
Scott Battaglia

Field Summary
 
Fields inherited from class org.jasig.cas.client.util.AbstractCasFilter
CONST_CAS_ASSERTION, log
 
Constructor Summary
AuthenticationFilter()
           
 
Method Summary
 void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain)
           
 void init()
          Initialization method.
protected  void initInternal(javax.servlet.FilterConfig filterConfig)
          Controls the ordering of filter initialization and checking by defining a method that runs before the init.
 void setCasServerLoginUrl(java.lang.String casServerLoginUrl)
           
 void setGateway(boolean gateway)
           
 void setGatewayStorage(GatewayResolver gatewayStorage)
           
 void setRenew(boolean renew)
           
 
Methods inherited from class org.jasig.cas.client.util.AbstractCasFilter
constructServiceUrl, destroy, getArtifactParameterName, getServiceParameterName, init, setArtifactParameterName, setEncodeServiceUrl, setServerName, setService, setServiceParameterName
 
Methods inherited from class org.jasig.cas.client.util.AbstractConfigurationFilter
getPropertyFromInitParams, isIgnoreInitConfiguration, loadFromContext, parseBoolean, setIgnoreInitConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationFilter

public AuthenticationFilter()
Method Detail

initInternal

protected void initInternal(javax.servlet.FilterConfig filterConfig)
                     throws javax.servlet.ServletException
Description copied from class: AbstractCasFilter
Controls the ordering of filter initialization and checking by defining a method that runs before the init.

Overrides:
initInternal in class AbstractCasFilter
Parameters:
filterConfig - the original filter configuration.
Throws:
javax.servlet.ServletException - if there is a problem.

init

public void init()
Description copied from class: AbstractCasFilter
Initialization method. Called by Filter's init method or by Spring. Similar in concept to the InitializingBean interface's afterPropertiesSet();

Overrides:
init in class AbstractCasFilter

doFilter

public final void doFilter(javax.servlet.ServletRequest servletRequest,
                           javax.servlet.ServletResponse servletResponse,
                           javax.servlet.FilterChain filterChain)
                    throws java.io.IOException,
                           javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

setRenew

public final void setRenew(boolean renew)

setGateway

public final void setGateway(boolean gateway)

setCasServerLoginUrl

public final void setCasServerLoginUrl(java.lang.String casServerLoginUrl)

setGatewayStorage

public final void setGatewayStorage(GatewayResolver gatewayStorage)


Copyright © 2006-2009 JA-SIG. All Rights Reserved.