wood burning stoves 2.0*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes JAAS and EJB 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 » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "JAAS and EJB" Watch "JAAS and EJB" New topic
Author

JAAS and EJB

Kumar Amit
Ranch Hand

Joined: Aug 13, 2001
Posts: 103
Hi

As per Mark Cade's study guide behaviour of EJB methods vary according to the role of the user. How should this be achieved?
Answer: Business methods determines the role of the user using JAAS and confiuration information in the deployment descriptor

Is this correct?

Can anyone give me example of how to use JAAS in this case

Thanks

Amit


SCJP, SCJD, SCEA
Yegor Bugayenko
Ranch Hand

Joined: Feb 11, 2011
Posts: 64
Something like this:



You need to read more about "programmatic JAAS" (try to google it).


follow me at yegor256.com
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JAAS and EJB
 
Similar Threads
Weblogic issue [security]
Differences between authorisation in JAAS and EJB security
A Question for JBoss at Work Authors
Security Question for JBoss at Work Authors
Part 2- How role gets assigned to user in JAAS?