This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes get role ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "get role ?" Watch "get role ?" New topic

get role ?

Gerald Pape

Joined: Jun 09, 2006
Posts: 2
I have a web service (from a java class) running in websphere 6.x. secured by basic authentication. I allow different Roles to access the web services, however in some webservices I need to know the role of the authenticated user but have no clue how to get it.

I would love to use IsCallerInRole but this is ejb only? How could I get the required context to use IsCallerInRole?

Any hints ?


Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41144
Other WS engines make the underlying HttpServletRequest available (e.g., for Axis the way to do it is described here). Check the WebSphere documentation if there's a comparable mechanism for that as well.

Ping & DNS - my free Android networking tools app
I agree. Here's the link:
subject: get role ?
Similar Threads
Getting the role of the prinicipal?
Why doesn't EJBContext offer a method like getCallerRole to obtain the caller's role?
Security Issue
how to get EntityContext object reference in Business methods