Class ThreadPermission

All Implemented Interfaces:
Serializable, Guard

public final class ThreadPermission extends BasicPermission
Permission to modify threads or thread groups normally not accessible to the current thread.

In some cases (e.g. test runners), code needs to manipulate arbitrary threads, so this Permission provides for that: the targets modifyArbitraryThread and modifyArbitraryThreadGroup allow a thread blanket access to any group.

See Also:
  • Constructor Details

    • ThreadPermission

      public ThreadPermission(String name)
      Creates a new ThreadPermission object.
      Parameters:
      name - target name
    • ThreadPermission

      public ThreadPermission(String name, String actions)
      Creates a new ThreadPermission object. This constructor exists for use by the Policy object to instantiate new Permission objects.
      Parameters:
      name - target name
      actions - ignored