aspose file tools*
The moose likes Java in General and the fly likes how to use doPriviledge()? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to use doPriviledge()?" Watch "how to use doPriviledge()?" New topic
Author

how to use doPriviledge()?

Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
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

Joined: Jul 21, 2003
Posts: 367
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

Joined: Jul 21, 2003
Posts: 367
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

Joined: Nov 04, 2001
Posts: 1871
Hi Norman
I've placed an order
Thanks for the link. Though more ideas/suggestions are welcome further.
Regards
Maulin
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to use doPriviledge()?