KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > lang > RuntimePermission > Top Examples

  • com.untrusted.script.UntrustedScriptHandler
    This class implements the ScriptHandler interface and represents an example of untrusted code. It creates a number of Java Permissions and checks that access is denied. the tests fail if the Permissions are granted. The only thing that the class should be allowed to make is a connection back to ...
  • org.jboss.security.SecurityAssociation
    The SecurityAssociation class maintains the security principal and credentials. This can be done on either a singleton basis or a thread local basis depending on the server property. When the server property has been set to true, the security information is maintained in thread local storage. The ...
  • org.apache.avalon.excalibur.lang.LayeredThreadContext
    The <code>LayeredThreadContext</code> defines a set of data that is associated with a particular thread. This is a useful feature for many of the same reasons as <code>ThreadContext</code> is useful. <p>The difference between <code>LayeredThreadContext</code ...
  • groovy.security.SecurityTest
    Test the effects of enabling security in Groovy. Some tests below check for proper framework behavior (e.g. ensuring that GroovyCodeSources may only be created for which proper permissions exist). Other tests run .groovy scripts under a secure environment and ensure that the proper permissions ar ...
  • org.jboss.util.loading.ContextClassLoaderSwitcher
    A helper for context classloading switching.<p> When a security manager is installed, the constructor checks for the runtime permissions &quot;getClassLoader&quot; and &quot;setContextClassLoader&quot;. This allows the methods of this class to be used later without having to ...
  • org.apache.tools.ant.types.Permissions
    This class implements a security manager meant for useage by tasks that run inside the ant VM. An examples are the Java Task and JUnitTask. The basic functionality is that nothing (except for a base set of permissions) is allowed, unless the permission is granted either explicitly or implicitly. ...
Popular Tags