Principal objects it can be obtained from ticketRegistry retrieving the
ticket that hold the principal. What is exactly you want to do??? You
can retrieve one ticket by id and get the principal like this:
String user = null;
Ticket exp = ticketRegistry.getTicket(id);
if(exp != null){
if(exp instanceof TicketGrantingTicketImpl){
user =
((TicketGrantingTicketImpl)exp).getAuthentication().getPrincipal().toStr
ing();
}
}
else{
user =
exp.getGrantingTicket().getAuthentication().getPrincipal().toString();
}
}
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas