This content has been marked as final.
Show 1 reply
-
1. Re: How to get the principal on a webservice behind JAAS?
sjahan Oct 10, 2011 4:10 AM (in response to sjahan)Finally figured out, it's quite simple but i got to look for it with good keywords.
For those who could wonder about the answer, you just declare a variable WebServiceContext in your POJO, with a @Resource annotation.
Example:
@Resource
public WebServiceContext wsCtx;
...
Later:
wsCtx.getUserPrincipal();
Hoping this could help someone later
Have a nice day.
SJ.