public final class Saml11TicketValidator extends AbstractUrlBasedTicketValidator
Modifier and Type | Field and Description |
---|---|
static String |
AUTH_METHOD_ATTRIBUTE
Authentication attribute containing SAML AuthenticationMethod attribute value.
|
logger
Constructor and Description |
---|
Saml11TicketValidator(String casServerUrlPrefix) |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
setTolerance(long tolerance) |
constructValidationUrl, encodeUrl, getCasServerUrlPrefix, getCustomParameters, getEncoding, getURLConnectionFactory, isRenew, setCustomParameters, setEncoding, setRenew, setURLConnectionFactory, validate
public static final String AUTH_METHOD_ATTRIBUTE
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 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–2016 Jasig. All rights reserved.