The checkAccess method of the StandardSecurityManager Class contains the following signatures:
checkAccess(Thread t)
checkAccess(ThreadGroup g)
Determines whether classes within the current execution context, based on the call stack of the current thread, are allowed to manipulate the specified thread.
public void checkAccess(Thread t);
t | The thread whose call stack is being checked for permissions. |
The check succeeds only if all the classes found on the call stack possess ThreadPermissions, and if those permissions allow access to the specified thread. This method overrides the java.lang.SecurityManager.checkAccess method.
SecurityException if the security check fails.
Determines whether classes within the current execution context, based on the call stack of the current thread, are allowed to manipulate the specified thread group.
public void checkAccess(ThreadGroup g);
g | The thread group whose call stack is being checked for permissions. |
The check succeeds only if all the classes found on the call stack possess ThreadPermissions, and if those permissions allow access to the specified thread group. This method overrides the java.lang.SecurityManager.checkAccess method.
SecurityException if the security check fails.