The ThreadPermission Class contains the following methods:
adjustPermission adjusts the ThreadPermission object with some run-time state.
check determines whether the specified threading object can be manipulated.
combine creates and returns a new ThreadPermission object that is a combination of the current permission object and the specified permission object.
compareSet compares the ThreadPermission instance with a specified permission object.
copy retrieves a copy of the ThreadPermission instance.
decode decodes the contents of the specified data stream into this permission object.
encode encodes the contents of this permission object and sends the encoded data to the specified stream.
getAllowedThreadGroup retrieves the ThreadGroup object that defines the domain in which classes that possess this permission are allowed to perform threading operations.
isThreadAccessUnrestricted determines whether this permission grants unlimited access to Thread objects.
isThreadGroupAccessUnrestricted determines whether this permission grants unlimited access to ThreadGroup objects.
mapFormat retrieves a permission-specific tag, given an encoding format.
reset resets the permission object to empty, which is a state in which the permission allows no threading operations.
setAllowedThreadGroup sets a ThreadGroup that defines the domain in which the permission object allows manipulation of Thread or ThreadGroup objects.
setUnrestrictedThreadAccess sets the ability to manipulate any Thread object in the system.
setUnrestrictedThreadGroupAccess sets the ability to manipulate any ThreadGroup object in the system.
supportedFormats retrieves the encoding formats that the permission type supports.
toString retrieves a textual representation of the permission object.