title: how to get permissions information from a java.lang.SecurityManager?
body: <p>I am doing some debugging in an application (not applet) and have obtained the system's security manager via a call to <strong>System.getSecurityManager()</strong>. How can I print all configuration information that this <strong>SecurityManager</strong> was setup with? Looking at the <a href="http://docs.oracle.com/javase/7/docs/api/" rel="nofollow">Java 7 SE API</a> it seems that all methods are interrogatory in nature and there is no way to get the permissions configuration. The <strong>toString()</strong> method also seems to inherit directly from <strong>Object</strong> and just prints the pointer.</p>