Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / February 2007

Tip: Looking for answers? Try searching our database.

Standard extension of JAAS for instance based authorization?

Thread view: 
zets - 11 Feb 2007 11:00 GMT
I'm wondering what is the best to do the following:

I would like to extend the standard role based access control check
which is done by JAAS (based on the role needed to run the method and
the role the user has), with a test that will check if the user is
allowed to run the method on the given params.

What I have in mind is something like this: for each EJB I will have
permission class (possibly most of them will share the same), and an
interceptor that would call something like SecurityManager (or
AccessController) checkPermission. I'm missing quite a lot of the
picture though. Not enough that I'm not sure this is the right thing,
I'm also not sure on the details of how to do it. For example, how
would I map Permission class to a method in an EJB?

Has anyone done this kinda thing? any recommendation on the right way?

Thanks.
sh3khar.jha@gmail.com - 12 Feb 2007 13:07 GMT
> I'm wondering what is the best to do the following:
>
[quoted text clipped - 14 lines]
>
> Thanks.

Take a look at JACC which solves the exact problem you are talking
about  :)

http://java.sun.com/j2ee/javaacc/index.html
zets - 12 Feb 2007 13:59 GMT
On Feb 12, 3:07 pm, sh3khar....@gmail.com wrote:

> > I'm wondering what is the best to do the following:
>
[quoted text clipped - 19 lines]
>
> http://java.sun.com/j2ee/javaacc/index.html

Thanks, can you please reference an example on how to do it with JACC?
I couldn't find any, or a tutorial. All I could find is the JSR
specification.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.