Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Security roles in EJB  RSS feed

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello There,
I have few clarifications on EJB. Please take time to help me.
We can define "Security Role" in the Deployment descriptor. How can I use this from my EJB. For example consider
I have an EJB called "AdminEJB". This EJB can be accesed by only administrators, hence I define a "security-role" called
"admin". Now please tell me what all should I do restrict others form accesing the EJB.
I have the following queries
1. I have a user called "zafer" who is an administrator, How can I map the user "zafer" with role "admin"
2. When should the methods "isCallerInRole()" and getCallerPrincipal() be used.
3. There is a node called "security-identity", what is it actually used for.

4. Similar is for "method-permission" node, How can I use it.

Currently I am using Pramati Server3.0 and also WebSphere 5.
Thanks,
Mohamed Zafer
 
You showed up just in time for the waffles! And this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!