org.jasig.cas.client.validation
Class Saml11TicketValidator

java.lang.Object
  extended by org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator
      extended by org.jasig.cas.client.validation.Saml11TicketValidator
All Implemented Interfaces:
TicketValidator

public final class Saml11TicketValidator
extends AbstractUrlBasedTicketValidator

TicketValidator that can understand validating a SAML artifact. This includes the SOAP request/response.

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

Field Summary
 
Fields inherited from class org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator
log
 
Constructor Summary
Saml11TicketValidator(java.lang.String casServerUrlPrefix)
           
 
Method Summary
protected  java.lang.String getUrlSuffix()
          The endpoint of the validation URL.
protected  Assertion parseResponseFromServer(java.lang.String response)
          Parses the response from the server into a CAS Assertion.
protected  void populateUrlAttributeMap(java.util.Map urlParameters)
          Template method for ticket validators that need to provide additional parameters to the validation url.
protected  java.lang.String retrieveResponseFromServer(java.net.URL validationUrl, java.lang.String ticket)
          Contacts the CAS Server to retrieve the response for the ticket validation.
 void setTolerance(long tolerance)
           
 
Methods inherited from class org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator
constructValidationUrl, encodeUrl, setCustomParameters, setRenew, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Saml11TicketValidator

public Saml11TicketValidator(java.lang.String casServerUrlPrefix)
Method Detail

getUrlSuffix

protected java.lang.String getUrlSuffix()
Description copied from class: AbstractUrlBasedTicketValidator
The endpoint of the validation URL. Should be relative (i.e. not start with a "/"). I.e. validate or serviceValidate.

Specified by:
getUrlSuffix in class AbstractUrlBasedTicketValidator
Returns:
the endpoint of the validation URL.

populateUrlAttributeMap

protected void populateUrlAttributeMap(java.util.Map urlParameters)
Description copied from class: AbstractUrlBasedTicketValidator
Template method for ticket validators that need to provide additional parameters to the validation url.

Overrides:
populateUrlAttributeMap in class AbstractUrlBasedTicketValidator
Parameters:
urlParameters - the map containing the parameters.

parseResponseFromServer

protected Assertion parseResponseFromServer(java.lang.String response)
                                     throws TicketValidationException
Description copied from class: AbstractUrlBasedTicketValidator
Parses the response from the server into a CAS Assertion.

Specified by:
parseResponseFromServer in class AbstractUrlBasedTicketValidator
Parameters:
response - the response from the server, in any format.
Returns:
the CAS assertion if one could be parsed from the response.
Throws:
TicketValidationException - if an Assertion could not be created.

retrieveResponseFromServer

protected java.lang.String retrieveResponseFromServer(java.net.URL validationUrl,
                                                      java.lang.String ticket)
Description copied from class: AbstractUrlBasedTicketValidator
Contacts the CAS Server to retrieve the response for the ticket validation.

Specified by:
retrieveResponseFromServer in class AbstractUrlBasedTicketValidator
Parameters:
validationUrl - the url to send the validation request to.
ticket - the ticket to validate.
Returns:
the response from the CAS server.

setTolerance

public void setTolerance(long tolerance)


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