|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.cas.client.validation.AbstractUrlBasedTicketValidator
org.jasig.cas.client.validation.AbstractCasProtocolUrlBasedTicketValidator
org.jasig.cas.client.validation.Cas20ServiceTicketValidator
public class Cas20ServiceTicketValidator
Implementation of the TicketValidator that will validate Service Tickets in compliance with the CAS 2.
| Field Summary |
|---|
| Fields inherited from class org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator |
|---|
hostnameVerifier, log |
| Constructor Summary | |
|---|---|
Cas20ServiceTicketValidator(String casServerUrlPrefix)
Constructs an instance of the CAS 2.0 Service Ticket Validator with the supplied CAS server url prefix. |
|
| Method Summary | |
|---|---|
protected void |
customParseResponse(String response,
Assertion assertion)
Template method if additional custom parsing (such as Proxying) needs to be done. |
protected Map<String,Object> |
extractCustomAttributes(String xml)
Default attribute parsing of attributes that look like the following: <cas:attributes> <cas:attribute1>value</cas:attribute1> <cas:attribute2>value</cas:attribute2> </cas:attributes> |
protected String |
getUrlSuffix()
The endpoint of the validation URL. |
protected Assertion |
parseResponseFromServer(String response)
Parses the response from the server into a CAS Assertion. |
protected void |
populateUrlAttributeMap(Map<String,String> urlParameters)
Adds the pgtUrl to the list of parameters to pass to the CAS server. |
void |
setProxyCallbackUrl(String proxyCallbackUrl)
|
void |
setProxyGrantingTicketStorage(ProxyGrantingTicketStorage proxyGrantingTicketStorage)
|
void |
setProxyRetriever(ProxyRetriever proxyRetriever)
|
| Methods inherited from class org.jasig.cas.client.validation.AbstractCasProtocolUrlBasedTicketValidator |
|---|
retrieveResponseFromServer, setDisableXmlSchemaValidation |
| Methods inherited from class org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator |
|---|
constructValidationUrl, encodeUrl, getEncoding, setCustomParameters, setEncoding, setHostnameVerifier, setRenew, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Cas20ServiceTicketValidator(String casServerUrlPrefix)
casServerUrlPrefix - the CAS Server URL prefix.| Method Detail |
|---|
protected final void populateUrlAttributeMap(Map<String,String> urlParameters)
populateUrlAttributeMap in class AbstractUrlBasedTicketValidatorurlParameters - the Map containing the existing parameters to send to the server.protected String getUrlSuffix()
AbstractUrlBasedTicketValidator
getUrlSuffix in class AbstractUrlBasedTicketValidator
protected final Assertion parseResponseFromServer(String response)
throws TicketValidationException
AbstractUrlBasedTicketValidator
parseResponseFromServer in class AbstractUrlBasedTicketValidatorresponse - the response from the server, in any format.
TicketValidationException - if an Assertion could not be created.protected Map<String,Object> extractCustomAttributes(String xml)
This code is here merely for sample/demonstration purposes for those wishing to modify the CAS2 protocol. You'll probably want a more robust implementation or to use SAML 1.1
xml - the XML to parse.
protected void customParseResponse(String response,
Assertion assertion)
throws TicketValidationException
response - the original response from the CAS server.assertion - the partially constructed assertion.
TicketValidationException - if there is a problem constructing the Assertion.public final void setProxyCallbackUrl(String proxyCallbackUrl)
public final void setProxyGrantingTicketStorage(ProxyGrantingTicketStorage proxyGrantingTicketStorage)
public final void setProxyRetriever(ProxyRetriever proxyRetriever)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||