20.17
java.lang.SecurityManager
THE PACKAGE JAVA.LANG
20.17.7
protected int classLoaderDepth()
This utility method for security managers searches the execution stack for the cur
rent thread to find the most recently invoked method whose execution has not yet
completed and whose class was created by a class loader ( 20.14). If such a
method is found, its distance from the top of the stack is returned as a nonnegative
integer; otherwise,
1
is returned.
20.17.8
protected boolean inClassLoader()
This utility method for security managers searches the execution stack for the cur
rent thread to find the most recently invoked method whose execution has not yet
completed and whose class was created by a class loader ( 20.14). If such a
method is found,
true
is returned; otherwise
false
is returned.
20.17.9
public boolean getInCheck()
The value of the
inCheck
field ( 20.17.1) is returned.
20.17.10
public void checkCreateClassLoader()
throws SecurityException
The general contract of this method is that it should throw a
SecurityException
if creation of a class loader is not permitted.
This method is invoked for the current security manager ( 20.18.4) by the
constructor for class
ClassLoader
( 20.14.1).
The
checkCreateClassLoader
method defined by class
SecurityManager
always throws a
SecurityException
. A subclass must override this method if a
class loader creation operation is to be permitted with a security manager
installed.
20.17.11
public void checkAccess(Thread t)
throws SecurityException
The general contract of this method is that it should throw a
SecurityException
if an operation that would modify the thread
t
is not permitted.
This method is invoked for the current security manager ( 20.18.4) by method
checkAccess
( 20.20.12) of class
Thread
.
572
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved