public class ServiceTicketValidator extends Object
Constructor and Description |
---|
ServiceTicketValidator() |
Modifier and Type | Method and Description |
---|---|
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.
|
static void |
main(String[] args) |
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() |
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 String getUser()
public String getPgtIou()
public boolean isAuthenticationSuccesful()
public String getErrorMessage()
public String getErrorCode()
public String getResponse()
public void validate() throws IOException, SAXException, ParserConfigurationException
Copyright © 2011 Nuxeo SA. All Rights Reserved.