This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to use doPriviledge()?

 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am having a UI on which I want to have a layer that implements "Access Control". So if the user is not allowed to perform certain operation it will throw the exception based on the permissions defined.
Now, I know that Java uses AccessController class and those doPriviledge() actions etc to impose this constraints on the operations but I will have to design similar thing on my own.
Can anybody suggest some good book/article or something that describes how this AccessController model is designed in Java? I am googling on this but if already you know please let me know.
Regards
Maulin
 
norman richards
Author
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Li Gong's "Inside Java 2 Platform Security" would be great. It's a short, no-fluff intro to Java security. It explains access control in great depth.
Amazon marketplace has used copies starting at $2. There's no excuse not to buy a copy...
http://www.amazon.com/exec/obidos/tg/detail/-/0201310007/qid=1067022471/sr=1-5/ref=sr_1_5/002-6752072-9496816?v=glance&s=books
 
norman richards
Author
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, that was an early edition. No wonder there were copies so cheap. I don't own the latest edition, but I will definitely put it on my buy list.
http://www.amazon.com/exec/obidos/ASIN/0201787911/qid=1067022693/sr=2-1/ref=sr_2_1/002-6752072-9496816
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Norman
I've placed an order
Thanks for the link. Though more ideas/suggestions are welcome further.
Regards
Maulin
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic