[ Using the basic Java CAS Client objects] ServiceTicketValidator#setService(?)
Carreno, José
Jose.Carreno at saint-gobain.com
Tue Oct 10 04:29:10 EDT 2006
Hello,
I'm trying to use ServiceTicketValidator in a J2EE webapp. The latter is "casified" with a CAS Filter.
In my JSP, I can access authenticated user and ticket. But when I try to use ServiceTicketValidator (my final goal is to generate proxy tickets), I get an "INVALID_TICKET" error.
Here is my question. This is the following piece of source code:
/* instantiate a new ServiceTicketValidator */
ServiceTicketValidator sv = new ServiceTicketValidator();
/* set its parameters */
sv.setCasValidateUrl(<CAS Validate URL>);
sv.setService(urlOfThisService); <== What do I need to set here ?
sv.setServiceTicket(<My Ticket>);
What do I need to put into setService() method? Javadoc says: ServiceTicketValidator#setService: "Sets the service to use when validating". Can someone give me further details about that?
Thank you in advance.
JJB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20061010/0de11f28/attachment.html
More information about the cas
mailing list