Not too sure if I'm barking up the right tree, so I'm wondering if ACLs are the way to go.
views:
95answers:
2
+1
A:
As far as I know, Access Control Lists (ACLs) for file system access highly depend on the the operating system, so I really doubt there's a Java library for that.
On the other hand, Java offers ACL directly (java.security.Acl
), so if you have an application for different users, you can use that ACL to restrict access to ressource within the application (which doesn't prevent a user from changing a file on the file system with his user permissions on the operating system).
Andreas_D
2009-11-25 09:55:47
Thanks. I checked out java.security.acl,but it turns out that it's deprecated, and I'm looking to represent permissions in the application, not filesystem ACLs. (Not your fault though, I probably should have phrased the question clearer.)
gamers2000
2009-11-25 10:26:19
Is it? I see no such hint in the java docs for 1.5 and 1.6. For Permissions - have you found this one: http://java.sun.com/j2se/1.4.2/docs/guide/security/permissions.html
Andreas_D
2009-11-25 10:53:02
Apologies - java.security.acl is apparently superseded by java.security, and not deprecated. (It does point to Permissions though!)Great find on Permissions, will come in handy. Thanks!
gamers2000
2009-11-26 04:16:36
(I'd upvote, but I don't have enough reputation. I wish there was some way I could acknowledge your help!)
gamers2000
2009-11-26 04:18:19