public class ServiceTicketValidator extends Object
Modifier and Type | Class and Description |
---|---|
protected class |
ServiceTicketValidator.Handler |
Modifier and Type | Field and Description |
---|---|
protected boolean |
attemptedAuthentication |
protected String |
casValidateUrl |
protected String |
entireResponse |
protected String |
errorCode |
protected String |
errorMessage |
protected String |
pgtIou |
protected String |
proxyCallbackUrl |
protected boolean |
renew |
protected String |
service |
protected String |
st |
protected boolean |
successfulAuthentication |
protected String |
user |
Constructor and Description |
---|
ServiceTicketValidator() |
Modifier and Type | Method and Description |
---|---|
protected void |
clear()
Clears internally manufactured state.
|
String |
getCasValidateUrl()
Gets the CAS validation URL to use when validating tickets and retrieving PGT IOUs.
|
String |
getErrorCode()
Returns CAS's error code if authentication failed.
|
String |
getErrorMessage()
Returns an error message if CAS authentication failed.
|
String |
getPgtIou()
Returns the PGT IOU returned by CAS.
|
String |
getProxyCallbackUrl()
Gets the callback URL, owned logically by the calling service, to receive the PGTid/PGTiou mapping.
|
String |
getResponse()
Retrieves CAS's entire response, if authentication was succsesful.
|
String |
getUser()
Returns the strongly authenticated username.
|
boolean |
isAuthenticationSuccesful()
Returns true if the most recent authentication attempted succeeded, false otherwise.
|
protected org.xml.sax.helpers.DefaultHandler |
newHandler() |
void |
setCasValidateUrl(String x)
Sets the CAS validation URL to use when validating tickets and retrieving PGT IOUs.
|
void |
setProxyCallbackUrl(String x)
Sets the callback URL, owned logically by the calling service, to receive the PGTid/PGTiou mapping.
|
void |
setRenew(boolean b)
Sets the "renew" flag on authentication.
|
void |
setService(String x)
Sets the service to use when validating.
|
void |
setServiceTicket(String x)
Sets the ST to validate.
|
void |
validate() |
protected String casValidateUrl
protected String proxyCallbackUrl
protected String errorMessage
protected String entireResponse
protected boolean renew
protected boolean attemptedAuthentication
protected boolean successfulAuthentication
public ServiceTicketValidator()
public void setCasValidateUrl(String x)
public String getCasValidateUrl()
public void setProxyCallbackUrl(String x)
public void setRenew(boolean b)
public String getProxyCallbackUrl()
public void setServiceTicket(String x)
public void setService(String x)
public boolean isAuthenticationSuccesful()
public String getErrorMessage()
public String getErrorCode()
public String getResponse()
public void validate() throws IOException, SAXException, ParserConfigurationException
protected org.xml.sax.helpers.DefaultHandler newHandler()
protected void clear()
Copyright © 2018 Nuxeo. All rights reserved.