This content has been marked as final.
Show 2 replies
-
1. Re: access to custom Principal in EJB and JSP's
wdrai Jan 9, 2004 8:57 AM (in response to baric)"wdrai" wrote:
The JAAS integration with the web containers always returns a new SimplePrincipal with the username, rather than getting the one from the JAAS Subject.
To get the JAAS subject, you can use SecurityAssociation.getSubject and then get your custom Principal from it. -
2. Re: access to custom Principal in EJB and JSP's
baric Jan 15, 2004 6:04 PM (in response to baric)"wdrai" wrote:
To get the JAAS subject, you can use SecurityAssociation.getSubject and then get your custom Principal from it.
That worked perfectly. Thanks!