For Programmers: Free Programming Magazines  


Home > Archive > Java Security > April 2004 > getPermissions() in SecureClassLoader









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author getPermissions() in SecureClassLoader
toffe

2004-04-17, 11:32 am

Hi,

I am writing my own ClassLoader, subclassing URLClassLoader, in order to
be able to restrict the permissions of the classes I load with it.

I just thought I could redefine getPermissions() to return a new
Permissions object, but my loaded classes can still access files on my
HDD, so my restrinctions obviously don't work.

What am I missing?

Thanks,
Kristoffer
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com