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 Form| Constructor and Description |
|---|
ThreadPermission(String name)
Creates a new ThreadPermission object.
|
ThreadPermission(String name,
String actions)
Creates a new ThreadPermission object.
|
equals, getActions, hashCode, implies, newPermissionCollectioncheckGuard, getName, toStringpublic ThreadPermission(String name)
name - target nameCopyright © 2015–2017. All rights reserved.