views:

95

answers:

2

Not too sure if I'm barking up the right tree, so I'm wondering if ACLs are the way to go.

+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
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
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
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
(I'd upvote, but I don't have enough reputation. I wish there was some way I could acknowledge your help!)
gamers2000
A: 

See if Spring Security can help you.

duffymo
Looks like that'll do the trick - thanks!
gamers2000