After authenticating a user using CXF WSAuthentication Interceptor… I need the username in the service implementation (Business Logic). Wondering if there is a easy way to get access to the Username in the Implementation class?
After authenticating a user using CXF WSAuthentication Interceptor… I need the username in the
Share
declare these in your implementation class:
then in any method do:
@Resource instructs the web service stack to inject the web service context into your wsContext attribute.