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, validate
public Saml11TicketValidator(String casServerUrlPrefix)
protected String getUrlSuffix()
AbstractUrlBasedTicketValidator
getUrlSuffix
in class AbstractUrlBasedTicketValidator
protected void populateUrlAttributeMap(Map<String,String> urlParameters)
AbstractUrlBasedTicketValidator
populateUrlAttributeMap
in class AbstractUrlBasedTicketValidator
urlParameters
- the map containing the parameters.protected void setDisableXmlSchemaValidation(boolean disabled)
AbstractUrlBasedTicketValidator
setDisableXmlSchemaValidation
in class AbstractUrlBasedTicketValidator
disabled
- whether to disable or not.protected byte[] getBytes(String text)
protected Assertion parseResponseFromServer(String response) throws TicketValidationException
AbstractUrlBasedTicketValidator
parseResponseFromServer
in class AbstractUrlBasedTicketValidator
response
- the response from the server, in any format.TicketValidationException
- if an Assertion could not be created.protected String retrieveResponseFromServer(URL validationUrl, String ticket)
AbstractUrlBasedTicketValidator
retrieveResponseFromServer
in class AbstractUrlBasedTicketValidator
validationUrl
- 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.