aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Security question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Security question" Watch "Security question" New topic
Author

Security question

Steven Colley
Ranch Hand

Joined: Feb 18, 2005
Posts: 290
Hi Folks, could you please help me with this question :

"If the <run-as> security identity specifies a principal other than the caller of the enterprise bean , the method tests the principal that represents the one given by the <runs-as> identity." - FALSE.

- Explanation: " The isCallerInRole(roleString) tests the principal that represents the actual caller of the enterprise bean , not the principal that corresponds to the <run-as> security identity for the bean, if any."


Tks so much!!!


SCJP | SCWCD | SCBCD | SCWSD 5 | SCEA (I) 1.4 | SCEA 5 | IBM SOA 669
Awishek sinha
Ranch Hand

Joined: Jun 24, 2007
Posts: 62
Originally posted by Felipe Pittella:
Hi Folks, could you please help me with this question :

"If the <run-as> security identity specifies a principal other than the caller of the enterprise bean , the method tests the principal that represents the one given by the <runs-as> identity." - FALSE.

- Explanation: " The isCallerInRole(roleString) tests the principal that represents the actual caller of the enterprise bean , not the principal that corresponds to the <run-as> security identity for the bean, if any."


Tks so much!!!



Hi Felipe
I think with <run-as> is the additional priviledge given to an bean .(not to a role ) as it needs to acess other bean method which may require greater access control .
so any Principal with the some roles call this bean method which in turn call another bean method then only the principal will get assigned this additional role so isCallerInRole(..) tests the principal that represents the actual caller of the enterprise bean . Hope it helps..
Thanks


Awishek Kr Sinha<br />SCJP 1.4<br />SCBCD 1.3
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Security question