开发者

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

开发者 https://www.devze.com 2023-03-26 20:03 出处:网络
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 co开发者_如何学Gould get this in C#, but my guess is that it would be easies

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 co开发者_如何学Gould 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!


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

0

精彩评论

暂无评论...
验证码 换一张
取 消