public final class ThreadPermission extends BasicPermission
SecureSM
enforces ThreadGroup security: threads with
RuntimePermission("modifyThread")
or RuntimePermission("modifyThreadGroup")
are only allowed to modify their current thread group or an ancestor of that group.
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.
ThreadGroup
,
SecureSM
,
Serialized FormConstructor and Description |
---|
ThreadPermission(String name)
Creates a new ThreadPermission object.
|
ThreadPermission(String name,
String actions)
Creates a new ThreadPermission object.
|
equals, getActions, hashCode, implies, newPermissionCollection
checkGuard, getName, toString
public ThreadPermission(String name)
name
- target nameCopyright © 2015-2016. All Rights Reserved.