org.jasig.cas.client.validation
Class Cas20ProxyTicketValidator

java.lang.Object
  extended by org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator
      extended by org.jasig.cas.client.validation.AbstractCasProtocolUrlBasedTicketValidator
          extended by org.jasig.cas.client.validation.Cas20ServiceTicketValidator
              extended by org.jasig.cas.client.validation.Cas20ProxyTicketValidator
All Implemented Interfaces:
TicketValidator
Direct Known Subclasses:
Cas30ProxyTicketValidator

public class Cas20ProxyTicketValidator
extends Cas20ServiceTicketValidator

Extension to the traditional Service Ticket validation that will validate service tickets and proxy tickets.

Since:
3.1
Author:
Scott Battaglia

Field Summary
 
Fields inherited from class org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator
logger
 
Constructor Summary
Cas20ProxyTicketValidator(String casServerUrlPrefix)
           
 
Method Summary
protected  void customParseResponse(String response, Assertion assertion)
          Template method if additional custom parsing (such as Proxying) needs to be done.
protected  ProxyList getAllowedProxyChains()
           
protected  String getUrlSuffix()
          The endpoint of the validation URL.
protected  boolean isAcceptAnyProxy()
           
protected  boolean isAllowEmptyProxyChain()
           
 void setAcceptAnyProxy(boolean acceptAnyProxy)
           
 void setAllowedProxyChains(ProxyList allowedProxyChains)
           
 void setAllowEmptyProxyChain(boolean allowEmptyProxyChain)
          Set to determine whether empty proxy chains are allowed.
 
Methods inherited from class org.jasig.cas.client.validation.Cas20ServiceTicketValidator
extractCustomAttributes, getProxyCallbackUrl, getProxyGrantingTicketStorage, getProxyRetriever, parseResponseFromServer, populateUrlAttributeMap, setProxyCallbackUrl, setProxyGrantingTicketStorage, setProxyRetriever
 
Methods inherited from class org.jasig.cas.client.validation.AbstractCasProtocolUrlBasedTicketValidator
retrieveResponseFromServer
 
Methods inherited from class org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator
constructValidationUrl, encodeUrl, getCasServerUrlPrefix, getCustomParameters, getEncoding, getURLConnectionFactory, isRenew, setCustomParameters, setEncoding, setRenew, setURLConnectionFactory, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cas20ProxyTicketValidator

public Cas20ProxyTicketValidator(String casServerUrlPrefix)
Method Detail

getAllowedProxyChains

protected final ProxyList getAllowedProxyChains()

getUrlSuffix

protected 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.

Overrides:
getUrlSuffix in class Cas20ServiceTicketValidator
Returns:
the endpoint of the validation URL.

customParseResponse

protected void customParseResponse(String response,
                                   Assertion assertion)
                            throws TicketValidationException
Description copied from class: Cas20ServiceTicketValidator
Template method if additional custom parsing (such as Proxying) needs to be done.

Overrides:
customParseResponse in class Cas20ServiceTicketValidator
Parameters:
response - the original response from the CAS server.
assertion - the partially constructed assertion.
Throws:
TicketValidationException - if there is a problem constructing the Assertion.

setAcceptAnyProxy

public final void setAcceptAnyProxy(boolean acceptAnyProxy)

setAllowedProxyChains

public final void setAllowedProxyChains(ProxyList allowedProxyChains)

isAcceptAnyProxy

protected final boolean isAcceptAnyProxy()

isAllowEmptyProxyChain

protected final boolean isAllowEmptyProxyChain()

setAllowEmptyProxyChain

public final void setAllowEmptyProxyChain(boolean allowEmptyProxyChain)
Set to determine whether empty proxy chains are allowed.

Parameters:
allowEmptyProxyChain - whether to allow empty proxy chains or not. True if so, false otherwise.
See Also:
customParseResponse(String, Assertion)


Copyright © 2006-2015 Jasig. All Rights Reserved.