Package com.sun.jini.thread
Class ThreadPoolPermission
java.lang.Object
java.security.Permission
java.security.BasicPermission
com.sun.jini.thread.ThreadPoolPermission
- All Implemented Interfaces:
Serializable,Guard
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
- Author:
- Sun Microsystems, Inc.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThreadPoolPermission(String name) Creates a new ThreadPoolPermission with the specified name. -
Method Summary
Methods inherited from class java.security.BasicPermission
equals, getActions, hashCode, implies, newPermissionCollectionMethods inherited from class java.security.Permission
checkGuard, getName, toString
-
Constructor Details
-
ThreadPoolPermission
Creates a new ThreadPoolPermission with the specified name.
-