org.jasig.cas.client.validation
Class Saml11TicketValidationFilter

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.validation.AbstractTicketValidationFilter
              extended by org.jasig.cas.client.validation.Saml11TicketValidationFilter
All Implemented Interfaces:
javax.servlet.Filter

public final class Saml11TicketValidationFilter
extends AbstractTicketValidationFilter

Implementation of TicketValidationFilter that can instanciate a SAML 1.1 Ticket Validator.

Deployers can provide the "casServerUrlPrefix" and "tolerance" properties of the Saml11TicketValidator via the context or filter init parameters.

Note, the "final" on this class helps ensure the compliance required in the initInternal method.

Since:
3.1
Version:
$Revision$ $Date$
Author:
Scott Battaglia

Field Summary
 
Fields inherited from class org.jasig.cas.client.util.AbstractCasFilter
CONST_CAS_ASSERTION, log
 
Constructor Summary
Saml11TicketValidationFilter()
           
 
Method Summary
protected  TicketValidator getTicketValidator(javax.servlet.FilterConfig filterConfig)
          Template method to return the appropriate validator.
protected  void initInternal(javax.servlet.FilterConfig filterConfig)
          Controls the ordering of filter initialization and checking by defining a method that runs before the init.
 
Methods inherited from class org.jasig.cas.client.validation.AbstractTicketValidationFilter
doFilter, getHostnameVerifier, init, onFailedValidation, onSuccessfulValidation, preFilter, setExceptionOnValidationFailure, setRedirectAfterValidation, setTicketValidator, setUseSession
 
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

Saml11TicketValidationFilter

public Saml11TicketValidationFilter()
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 AbstractTicketValidationFilter
Parameters:
filterConfig - the original filter configuration.
Throws:
javax.servlet.ServletException - if there is a problem.

getTicketValidator

protected final TicketValidator getTicketValidator(javax.servlet.FilterConfig filterConfig)
Description copied from class: AbstractTicketValidationFilter
Template method to return the appropriate validator.

Overrides:
getTicketValidator in class AbstractTicketValidationFilter
Parameters:
filterConfig - the FilterConfiguration that may be needed to construct a validator.
Returns:
the ticket validator.


Copyright © 2006-2011 Jasig. All Rights Reserved.