Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

HELP NEEDED in DD

 
Ranch Hand
Posts: 1880
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the use of <security-identity> element??
Can anyone expalin me??
Advance Thanx.
 
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


21.3.4 Specification of security identities in the deployment descriptor
21.3.4.1 Run-as


The Application Assembler should specify the requirements for the caller�s principal management of
enterprise bean invocations by means of the security-identity deployment descriptor element
and as part of the description. If use-caller-identity is specified as the value of the security-
identity element, the caller principal is propagated from the caller to the callee. (That is, the
called enterprise bean will see the same returned value of the EJBContext.getCallerPrincipal()
as the calling enterprise bean.) If the run-as element is specified, a security principal that has
been assigned to the specified security role will be used for the execution of the bean�s methods and will
be visible as the caller principal in the callee.


You can you use-caller-identity or run-as element for make a call to another method in which role.
hope this help...
 
Krishna Srinivasan
Ranch Hand
Posts: 1880
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THanxxx
 
Doody calls. I would really rather that it didn't. Comfort me wise and sterile tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic