Reputation: 101
I need a way of detecting whether or not Java is in Protected mode, and what permissions Java has. It would be awesome if I could get this in C#, but my guess is that it would be easiest in Java (if that is the case, any idea on how to link it into a Visual Studio project?) Thanks for the help!
Upvotes: 0
Views: 329
Reputation: 23342
Are you asking whether there is an active security manager? Call System.getSecurityManager()
and see if it returns null.
Upvotes: 1