This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getCallerPrincipal()

 
Padma Priya
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

The chapter 17 of Core Ejb3.0 Spec on Security says:

Note that getCallerPrincipal returns the principal that represents the caller of the
enterprise bean, not the principal that corresponds to the run-as security identity for the bean,
if any.


So how can we get the principal that corresponds to the run-as security identity for the bean

With Regards
Deepthi
 
Padma Priya
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And also can anybody explain me the difference between caller Principal and a Role. are both the same
 
will hrock
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We can't get the Principal that corresponds to the run-as.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic