public class Cas30JsonServiceTicketValidator extends Cas30ServiceTicketValidator
Cas30JsonServiceTicketValidator that attempts to parse the CAS validation response
as JSON. If the response is not formatted as JSON, it shall fallback to the XML default syntax.
The JSON response provides advantages in terms of naming and parsing CAS attributes that have special
names that otherwise may not be encoded as XML, such as the invalid <cas:special:attribute>value</cas:special:attribute>PGT_ATTRIBUTElogger| Constructor and Description |
|---|
Cas30JsonServiceTicketValidator(String casServerUrlPrefix) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
extractCustomAttributes(String xml)
Custom attribute extractor that will account for inlined CAS attributes.
|
protected Assertion |
parseResponseFromServer(String response)
Parses the response from the server into a CAS Assertion.
|
getUrlSuffixcustomParseResponse, getPrivateKey, getProxyCallbackUrl, getProxyGrantingTicketStorage, getProxyRetriever, parseAuthenticationFailureFromResponse, parsePrincipalFromResponse, populateUrlAttributeMap, retrieveProxyGrantingTicket, retrieveProxyGrantingTicketFromStorage, retrieveProxyGrantingTicketViaEncryption, setPrivateKey, setProxyCallbackUrl, setProxyGrantingTicketStorage, setProxyRetrieverretrieveResponseFromServerconstructValidationUrl, encodeUrl, getCasServerUrlPrefix, getCustomParameters, getEncoding, getURLConnectionFactory, isRenew, setCustomParameters, setEncoding, setRenew, setURLConnectionFactory, validatepublic Cas30JsonServiceTicketValidator(String casServerUrlPrefix)
protected Assertion parseResponseFromServer(String response) throws TicketValidationException
AbstractUrlBasedTicketValidatorparseResponseFromServer in class Cas20ServiceTicketValidatorresponse - the response from the server, in any format.TicketValidationException - if an Assertion could not be created.protected Map<String,Object> extractCustomAttributes(String xml)
Cas30ServiceTicketValidatorextractCustomAttributes in class Cas30ServiceTicketValidatorxml - the XML to parse.Copyright © 2006–2021 Apereo. All rights reserved.