Class ThreadPermission
java.lang.Object
java.security.Permission
java.security.BasicPermission
org.opensearch.secure_sm.ThreadPermission
- All Implemented Interfaces:
Serializable,Guard
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 Summary
ConstructorsConstructorDescriptionThreadPermission(String name) Creates a new ThreadPermission object.ThreadPermission(String name, String actions) Creates a new ThreadPermission object. -
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
-
ThreadPermission
Creates a new ThreadPermission object.- Parameters:
name- target name
-
ThreadPermission
-