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.
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.