Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.jini.thread
Class ThreadPoolPermission

    java.lang.Object
      java.security.Permission
          java.security.BasicPermission
              com.sun.jini.thread.ThreadPoolPermission

All Implemented Interfaces:
  Guard, Serializable

public final class ThreadPoolPermission
extends BasicPermission

Permission to use internal thread pools (see GetThreadPoolAction). A ThreadPoolPermission contains a name (also referred to as a "target name") but no action list; you either have the named permission or you don't. ThreadPoolPermission defines two target names, "getSystemThreadPool" and "getUserThreadPool", for permission to get the system thread group pool and permission to get the non-system thread group pool. A ThreadPoolPermission implies the following: - permission to access the thread group designated by the target name; see SecurityManager.checkAccess(ThreadGroup) - permission to execute a NewThreadAction, which requires RuntimePermission("getClassLoader") and RuntimePermission("setContextClassLoader"); more practically, this is permission to have a Runnable executed with the system class loader as the context class loader - permission to execute a Runnable without the caller's protection domain in force

See Also:
  Serialized Form

Constructor Summary
`ThreadPoolPermission(String name)` Creates a new ThreadPoolPermission with the specified name.

Methods inherited from class java.security.BasicPermission
`equals, getActions, hashCode, implies, newPermissionCollection`

Methods inherited from class java.security.Permission
`checkGuard, getName, toString`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Constructor Detail

### ThreadPoolPermission

    public ThreadPoolPermission(String name)

  Creates a new ThreadPoolPermission with the specified name.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 Sun Microsystems, Inc. All rights reserved