String ticket = httpRequest.getParameter("ticket");
String jossoAssertion = httpRequest.getParameter("josso_assertion_id");
if (ticket != null && ticket.trim().length() > 0)
{
CASAgent casagent = CASAgent.getInstance(this.ssoServerUrl, this.casServiceUrl);
casagent.setRenewTicket(this.casRenewTicket);
casagent.validateTicket(httpRequest, ticket);
}
else if (jossoAssertion != null && jossoAssertion.trim().length() > 0)
{
//the JOSSO Agent. This will need to the new client side JOSSO stack that can run on 5.1.0.GA
JOSSOAgent.getInstance().validateTicket(httpRequest,httpResponse);