Is there any other implementation (e.g. in an OSS project) of a Java SecurityManager available which has more features than the one in the JDK?
I'm looking for features like
security.policy
filefile.encoding
or line.separator
, but disallow read-access to user.home"I'm pretty sure that application servers (at least the commercial ones) have their own SecurityManager
implementation or at least their own policy configuration. I'm wondering if there is any free project with similar requirements.
ProtectionDomain
s (introduced in 1.4 IIRC), delegate to the modifiable Policy
.ThreadGroup
, which is generally considered a bad thing.AccessController.doPrivileged
.AccessController
in the Sun/Oracle implementation does have tracing features."Glossitope" attempted to have a system that sprung up a dialog box every time a permission was requested. Of course, the request makes no sense to the user that just wants to see the dancing pigs. (Glossitope was an attempt at a Java version of the Vista side panel thing. The features added to 6u10 (drag-and-drop install, non-rectangular windows, warning icon instead of banner, JNLP services) make it mostly redundant.)
I'm not aware of a standalone SecurityManager project. Any application server (JBoss, Glassfish) will contain one to control what a loaded application can do.
Here are some links I found on the subject of rolling your own:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With