public final class Saml11TicketValidator extends AbstractUrlBasedTicketValidator
logger| Constructor and Description |
|---|
Saml11TicketValidator(String casServerUrlPrefix) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
getBytes(String text) |
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)
Template method for ticket validators that need to provide additional parameters to the validation url.
|
protected String |
retrieveResponseFromServer(URL validationUrl,
String ticket)
Contacts the CAS Server to retrieve the response for the ticket validation.
|
protected void |
setDisableXmlSchemaValidation(boolean disabled)
Disable XML Schema validation.
|
void |
setTolerance(long tolerance) |
constructValidationUrl, encodeUrl, getCasServerUrlPrefix, getCustomParameters, getEncoding, getURLConnectionFactory, isRenew, setCustomParameters, setEncoding, setRenew, setURLConnectionFactory, validatepublic Saml11TicketValidator(String casServerUrlPrefix)
protected String getUrlSuffix()
AbstractUrlBasedTicketValidatorgetUrlSuffix in class AbstractUrlBasedTicketValidatorprotected void populateUrlAttributeMap(Map<String,String> urlParameters)
AbstractUrlBasedTicketValidatorpopulateUrlAttributeMap in class AbstractUrlBasedTicketValidatorurlParameters - the map containing the parameters.protected void setDisableXmlSchemaValidation(boolean disabled)
AbstractUrlBasedTicketValidatorsetDisableXmlSchemaValidation in class AbstractUrlBasedTicketValidatordisabled - whether to disable or not.protected byte[] getBytes(String text)
protected Assertion parseResponseFromServer(String response) throws TicketValidationException
AbstractUrlBasedTicketValidatorparseResponseFromServer in class AbstractUrlBasedTicketValidatorresponse - the response from the server, in any format.TicketValidationException - if an Assertion could not be created.protected String retrieveResponseFromServer(URL validationUrl, String ticket)
AbstractUrlBasedTicketValidatorretrieveResponseFromServer in class AbstractUrlBasedTicketValidatorvalidationUrl - the url to send the validation request to.ticket - the ticket to validate.public void setTolerance(long tolerance)
Copyright © 2006-2014 Jasig. All Rights Reserved.