This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Security and the fly likes JAAS API usage with Oracle DB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » Security
Bookmark "JAAS API usage with Oracle DB" Watch "JAAS API usage with Oracle DB" New topic

JAAS API usage with Oracle DB

Kavya Anjali
Ranch Hand

Joined: Mar 23, 2006
Posts: 30
We are looking for role based authorization by using JAAS API. Roles data is available in database (oracle DB), how can we implement the JAAS authorization custom module by interacting with external DB, not the policy file and LDAP data store.

Are there good articles for JAAS API usage? If so please post them as well.

Please help on this issue.

SCJP 5.0
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
The Security FAQ links to some introductory articles covering JAAS.
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Basically for authentication you can use absolutely anything as credential store for your application.You can then use Authorisation part of JAAS (login module)for doing the actual authentication.JAASs authorization is build on the top of javas policy based you can associate required custom premission with principals and then populate the subject with those principals after a successful authentication.
The following articles might help.

Rahul Bhattacharjee
LinkedIn - Blog
Kavya Anjali
Ranch Hand

Joined: Mar 23, 2006
Posts: 30
Thanks for the reply..will try out the suggestions...
Have you checked out Aspose?
subject: JAAS API usage with Oracle DB
It's not a secret anymore!