I have restful web services in a Java EE application (ejb3) running on jboss. And do not know how to get username or password programmatically, like when service method is called I want to be able to get this user principals as smilar to jaxws
webServiceContext.getUserPrincipal().getName()
or
(httpServletRequest) <-- request.getUserPrincipal()
I would be glad to hear the solutions, thanks.