THE PACKAGE JAVA.LANG
java.lang.SecurityManager
20.17
20.17.2
protected SecurityManager()
throws SecurityException
This constructor checks to see whether a security manager has already been
installed ( 20.18.5); if so, creation of another security manager is not permitted,
and so a
SecurityException
is thrown.
20.17.3
protected Class[] getClassContext()
This utility method for security managers scans the execution stack for the current
thread and returns an array with one component for each stack frame. The compo
nent at position
0
corresponds to the top of the stack. If a component is a
Class
object, then the corresponding stack frame is for an invocation of a method of the
class represented by that
Class
object.
20.17.4
protected int classDepth(String name)
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 has
name
as its fully qualified name. 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.5
protected boolean inClass(String name)
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 has
name
as its fully qualified name. If such a method
is found,
true
is returned; otherwise,
false
is returned.
20.17.6
protected ClassLoader currentClassLoader()
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, a reference to the
ClassLoader
object for its class is returned;
otherwise,
null
is returned.
571
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