log.debug("Trying to validate the following Ticket: " + ticket);
String requester = JOSSOUtils.getPartnerAppId(httpAgent, httpRequest);
//Use the JOSSO Client Library to validate the token and extract the subject that was authenticated
SSOAgentRequest agentRequest = this.doMakeSSOAgentRequest(requester, SSOAgentRequest.ACTION_RELAY,
null, ticket, httpRequest, httpResponse);
SingleSignOnEntry entry = this.httpAgent.processRequest(agentRequest);
if(entry != null)
{
String sessionId = agentRequest.getSessionId();
String assertionId = agentRequest.getAssertionId();
String principal = entry.principal.getName();
log.debug("SessionId: " + sessionId);
log.debug("AssertionId: " + assertionId);
log.debug("Principal: " + principal);