开发者

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 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜