Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GenericPrincipal headache

Status
Not open for further replies.

jby1

Programmer
Apr 29, 2003
403
GB
Hi

I have implemented JAAS authentication for my tomcat-hosted application, and wish to be able to access a custom Principal after the user logs in. I am wanting to store some specific information such as the last successful login in the custom Principal in order to display this to the user. However, when I attempt to cast the Principal to my custom Principal, I am getting a ClassCastException on GenericPrincipal.

Anyone seen this before? How would I get around this?

Cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top