super agent intern
super agent intern

Reputation: 101

Detect if Java is in protected mode, and what permissions Java has

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

Answers (1)

hmakholm left over Monica
hmakholm left over Monica

Reputation: 23342

Are you asking whether there is an active security manager? Call System.getSecurityManager() and see if it returns null.

Upvotes: 1

Related Questions