<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.lang.SecurityManager
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.lang.html">This Package</a>  <a href="java.lang.Runtime.html#_top_">Previous</a>  <a href="java.lang.Short.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.lang.SecurityManager
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.lang.SecurityManager
</pre>
<hr>
<dl>
  <dt> public abstract class <b>SecurityManager</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
</dl>
The security manager is an abstract class that allows
 applications to implement a security policy. It allows an
 application to determine, before performing a possibly unsafe or
 sensitive operation, what the operation is and whether the
 operation is being performed by a class created via a class loader
 rather than installed locally. Classes loaded via a class loader
 (especially if they have been downloaded over a network) may be
 less trustworthy than classes from files installed locally. The
 application can allow or disallow the operation.
 <p>
 The <code>SecurityManager</code> class contains many methods with
 names that begin with the word <code>check</code>. These methods
 are called by various methods in the Java libraries before those
 methods perform certain potentially sensitive operations. The
 invocation of such a check method typically looks like this:
 <p><blockquote><pre>
     SecurityManager security = System.getSecurityManager();
     if (security != null) {
         security.check</code><i>XXX</i><code>(argument, &nbsp;.&nbsp;.&nbsp;.&nbsp;);
     }
 </pre></blockquote>
 <p>
 The security manager is thereby given an opportunity to prevent
 completion of the operation by throwing an exception. A security
 manager routine simply returns if the operation is permitted, but
 throws a <code>SecurityException</code> if the operation is not
 permitted. The only exception to this convention is
 <code>checkTopLevelWindow</code>, which returns a
 <code>boolean</code> value.
 <p>
 The current security manager is set by the
 <code>setSecurityManager</code> method in class
 <code>System</code>. The current security manager is obtained
 by the <code>getSecurityManager</code> method.
 <p>
 The default implementation of each of the
 <code>check</code><i>XXX</i> methods is to assume that the caller
 does <i>not</i> have permission to perform the requested operation.
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.ClassLoader.html#_top_">ClassLoader</a>, <a href="java.lang.SecurityException.html#_top_">SecurityException</a>, <a href="#checkTopLevelWindow(java.lang.Object)">checkTopLevelWindow</a>, <a href="java.lang.System.html#getSecurityManager()">getSecurityManager</a>, <a href="java.lang.System.html#setSecurityManager(java.lang.SecurityManager)">setSecurityManager</a>
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/variable-index.gif" width=207 height=38 alt="Variable Index">
</h2>
<dl>
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#inCheck"><b>inCheck</b></a>
  <dd>  This field is <code>true</code> if there is a security check in
 progress; <code>false</code> otherwise.
</dl>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#SecurityManager()"><b>SecurityManager</b></a>()
  <dd>  Constructs a new <code>SecurityManager</code>.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkAccept(java.lang.String, int)"><b>checkAccept</b></a>(String, int)
  <dd>  Throws a <code>SecurityException</code> if the
 calling thread is not permitted to accept a socket connection from
 the specified host and port number.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkAccess(java.lang.Thread)"><b>checkAccess</b></a>(Thread)
  <dd>  Throws a <code>SecurityException</code> if the
 calling thread is not allowed to modify the thread argument.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkAccess(java.lang.ThreadGroup)"><b>checkAccess</b></a>(ThreadGroup)
  <dd>  Throws a <code>SecurityException</code> if the
 calling thread is not allowed to modify the thread group argument.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkAwtEventQueueAccess()"><b>checkAwtEventQueueAccess</b></a>()
  <dd>  Tests if a client can get access to the AWT event queue.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkConnect(java.lang.String, int)"><b>checkConnect</b></a>(String, int)
  <dd>  Throws a <code>SecurityException</code> if the
 calling thread is not allowed to open a socket connection to the
 specified host and port number.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkConnect(java.lang.String, int, java.lang.Object)"><b>checkConnect</b></a>(String, int, Object)
  <dd>  Throws a <code>SecurityException</code> if the
 specified security context is not allowed to open a socket
 connection to the specified host and port number.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkCreateClassLoader()"><b>checkCreateClassLoader</b></a>()
  <dd>  Throws a <code>SecurityException</code> if the
 calling thread is not allowed to create a new class loader.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkDelete(java.lang.String)"><b>checkDelete</b></a>(String)
  <dd>  Throws a <code>SecurityException</code> if the
 calling thread is not allowed to delete the specified file.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkExec(java.lang.String)"><b>checkExec</b></a>(String)
  <dd>  Throws a <code>SecurityException</code> if the
 calling thread is not allowed to create a subprocess.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkExit(int)"><b>checkExit</b></a>(int)
  <dd>  Throws a <code>SecurityException</code> if the
 calling thread is not allowed to cause the Java Virtual Machine to
 halt with the specified status code.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkLink(java.lang.String)"><b>checkLink</b></a>(String)
  <dd>  Throws a <code>SecurityException</code> if the
 calling thread is not allowed to dynamic link the library code
 specified by the string argument file.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkListen(int)"><b>checkListen</b></a>(int)
  <dd>  Throws a <code>SecurityException</code> if the
 calling thread is not allowed to wait for a connection request on
 the specified local port number.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkMemberAccess(java.lang.Class, int)"><b>checkMemberAccess</b></a>(Class, int)
  <dd>  Tests if a client is allowed to access members.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkMulticast(java.net.InetAddress)"><b>checkMulticast</b></a>(InetAddress)
  <dd>  Tests if current execution context is allowed to use
 (join/leave/send/receive) IP multicast.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkMulticast(java.net.InetAddress, byte)"><b>checkMulticast</b></a>(InetAddress, byte)
  <dd>  Tests to see if current execution context is allowed to use
 (join/leave/send/receive) IP multicast.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkPackageAccess(java.lang.String)"><b>checkPackageAccess</b></a>(String)
  <dd>  Throws a <code>SecurityException</code> if the
 calling thread is not allowed to access the package specified by
 the argument.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkPackageDefinition(java.lang.String)"><b>checkPackageDefinition</b></a>(String)
  <dd>  Throws a <code>SecurityException</code> if the
 calling thread is not allowed to define classes in the package
 specified by the argument.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkPrintJobAccess()"><b>checkPrintJobAccess</b></a>()
  <dd>  Tests if a client can initiate a print job request.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkPropertiesAccess()"><b>checkPropertiesAccess</b></a>()
  <dd>  Throws a <code>SecurityException</code> if the
 calling thread is not allowed to access or modify the system
 properties.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkPropertyAccess(java.lang.String)"><b>checkPropertyAccess</b></a>(String)
  <dd>  Throws a <code>SecurityException</code> if the
 calling thread is not allowed to access the system property with
 the specified <code>key</code> name.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkRead(java.io.FileDescriptor)"><b>checkRead</b></a>(FileDescriptor)
  <dd>  Throws a <code>SecurityException</code> if the
 calling thread is not allowed to read from the specified file
 descriptor.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkRead(java.lang.String)"><b>checkRead</b></a>(String)
  <dd>  Throws a <code>SecurityException</code> if the
 calling thread is not allowed to read the file specified by the
 string argument.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkRead(java.lang.String, java.lang.Object)"><b>checkRead</b></a>(String, Object)
  <dd>  Throws a <code>SecurityException</code> if the
 specified security context is not allowed to read the file
 specified by the string argument.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkSecurityAccess(java.lang.String)"><b>checkSecurityAccess</b></a>(String)
  <dd>  Tests access to certain operations for a security API
 action.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkSetFactory()"><b>checkSetFactory</b></a>()
  <dd>  Throws a <code>SecurityException</code> if the
 calling thread is not allowed to set the socket factory used by
 <code>ServerSocket</code> or <code>Socket</code>, or the stream
 handler factory used by <code>URL</code>.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkSystemClipboardAccess()"><b>checkSystemClipboardAccess</b></a>()
  <dd>  Tests if a client can get access to the system clipboard.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkTopLevelWindow(java.lang.Object)"><b>checkTopLevelWindow</b></a>(Object)
  <dd>  Returns <code>false</code> if the calling
 thread is not trusted to bring up the top-level window indicated
 by the <code>window</code> argument.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkWrite(java.io.FileDescriptor)"><b>checkWrite</b></a>(FileDescriptor)
  <dd>  Throws a <code>SecurityException</code> if the
 calling thread is not allowed to write to the specified file
 descriptor.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkWrite(java.lang.String)"><b>checkWrite</b></a>(String)
  <dd>  Throws a <code>SecurityException</code> if the
 calling thread is not allowed to write to the file specified by
 the string argument.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#classDepth(java.lang.String)"><b>classDepth</b></a>(String)
  <dd>  Returns the stack depth of the specified class.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#classLoaderDepth()"><b>classLoaderDepth</b></a>()
  <dd>  Returns the stack depth of the most recently executing method
 from a class defined using a class loader.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#currentClassLoader()"><b>currentClassLoader</b></a>()
  <dd>  Returns an object describing the most recent class loader executing
 on the stack.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#currentLoadedClass()"><b>currentLoadedClass</b></a>()
  <dd>  Returns the current Class with a ClassLoader on the execution stack.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getClassContext()"><b>getClassContext</b></a>()
  <dd>  Returns the current execution stack as an array of classes.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getInCheck()"><b>getInCheck</b></a>()
  <dd>  Tests if there is a security check in progress.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getSecurityContext()"><b>getSecurityContext</b></a>()
  <dd>  Creates an object that encapsulates the current execution
 environment.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getThreadGroup()"><b>getThreadGroup</b></a>()
  <dd>  Returns the thread group into which to instantiate any new
 thread being created at the time this is being called.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#inClass(java.lang.String)"><b>inClass</b></a>(String)
  <dd>  Tests if the specified String is in this Class.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#inClassLoader()"><b>inClassLoader</b></a>()
  <dd>  Tests if the current ClassLoader is equal to
 <code>null</code>.
</dl>
<a name="variables"></a>
<h2>
  <img src="images/variables.gif" width=153 height=38 alt="Variables">
</h2>
<a name="inCheck"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>inCheck</b>
<pre>
 protected boolean inCheck
</pre>
<dl>
  <dd> This field is <code>true</code> if there is a security check in
 progress; <code>false</code> otherwise.<p>
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="SecurityManager"></a>
<a name="SecurityManager()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>SecurityManager</b>
<pre>
 protected SecurityManager()
</pre>
<dl>
  <dd> Constructs a new <code>SecurityManager</code>. An application is
 not allowed to create a new security manager if there is already a
 current security manager.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if a security manager already exists.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.System.html#getSecurityManager()">getSecurityManager</a>
  </dl></dd>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="getInCheck()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getInCheck"><b>getInCheck</b></a>
<pre>
 public boolean getInCheck()
</pre>
<dl>
  <dd> Tests if there is a security check in progress.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the value of the <code>inCheck</code> field. This field should
          contain <code>true</code> if a security check is in progress;
          <code>false</code> otherwise.
    <dt> <b>See Also:</b>
    <dd> <a href="#inCheck">inCheck</a>
  </dl></dd>
</dl>
<a name="getClassContext()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getClassContext"><b>getClassContext</b></a>
<pre>
 protected native <a href="java.lang.Class.html#_top_">Class</a>[] getClassContext()
</pre>
<dl>
  <dd> Returns the current execution stack as an array of classes.
 <p>
 The length of the array is the number of methods on the execution
 stack. The element at index <code>0</code> is the class of the
 currently executing method, the element at index <code>1</code> is
 the class of that method's caller, and so on.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the execution stack.
  </dl></dd>
</dl>
<a name="currentClassLoader()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="currentClassLoader"><b>currentClassLoader</b></a>
<pre>
 protected native <a href="java.lang.ClassLoader.html#_top_">ClassLoader</a> currentClassLoader()
</pre>
<dl>
  <dd> Returns an object describing the most recent class loader executing
 on the stack.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the class loader of the most recent occurrence on the stack
          of a method from a class defined using a class loader;
          returns <code>null</code> if there is no occurrence on the
          stack of a method from a class defined using a class loader.
  </dl></dd>
</dl>
<a name="currentLoadedClass()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="currentLoadedClass"><b>currentLoadedClass</b></a>
<pre>
 protected <a href="java.lang.Class.html#_top_">Class</a> currentLoadedClass()
</pre>
<dl>
  <dd> Returns the current Class with a ClassLoader on the execution stack.
<p>
</dl>
<a name="classDepth(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="classDepth"><b>classDepth</b></a>
<pre>
 protected native int classDepth(<a href="java.lang.String.html#_top_">String</a> name)
</pre>
<dl>
  <dd> Returns the stack depth of the specified class.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> name - the fully qualified name of the class to search for.
    <dt> <b>Returns:</b>
    <dd> the depth on the stack frame of the first occurrence of a
          method from a class with the specified name;
          <code>-1</code> if such a frame cannot be found.
  </dl></dd>
</dl>
<a name="classLoaderDepth()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="classLoaderDepth"><b>classLoaderDepth</b></a>
<pre>
 protected native int classLoaderDepth()
</pre>
<dl>
  <dd> Returns the stack depth of the most recently executing method
 from a class defined using a class loader.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the depth on the stack frame of the most recent occurrence of a
          method from a class defined using a class loader; returns
          <code>-1</code> if there is no occurrence of a method from
          a class defined using a class loader.
  </dl></dd>
</dl>
<a name="inClass(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="inClass"><b>inClass</b></a>
<pre>
 protected boolean inClass(<a href="java.lang.String.html#_top_">String</a> name)
</pre>
<dl>
  <dd> Tests if the specified String is in this Class.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> name - the fully qualified name of the class.
    <dt> <b>Returns:</b>
    <dd> <code>true</code> if a method from a class with the specified
          name is on the execution stack; <code>false</code> otherwise.
  </dl></dd>
</dl>
<a name="inClassLoader()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="inClassLoader"><b>inClassLoader</b></a>
<pre>
 protected boolean inClassLoader()
</pre>
<dl>
  <dd> Tests if the current ClassLoader is equal to
 <code>null</code>.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> <code>true</code> if a method from a class defined using a
          class loader is on the execution stack.
  </dl></dd>
</dl>
<a name="getSecurityContext()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getSecurityContext"><b>getSecurityContext</b></a>
<pre>
 public <a href="java.lang.Object.html#_top_">Object</a> getSecurityContext()
</pre>
<dl>
  <dd> Creates an object that encapsulates the current execution
 environment. The result of this method is used by the
 three-argument <code>checkConnect</code> method and by the
 two-argument <code>checkRead</code> method.
 <p>
 These methods are needed because a trusted method may be called
 on to read a file or open a socket on behalf of another method.
 The trusted method needs to determine if the other (possibly
 untrusted) method would be allowed to perform the operation on its
 own.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> an implementation-dependent object that encapsulates
          sufficient information about the current execution environment
          to perform some security checks later.
    <dt> <b>See Also:</b>
    <dd> <a href="#checkConnect(java.lang.String, int, java.lang.Object)">checkConnect</a>, <a href="#checkRead(java.lang.String, java.lang.Object)">checkRead</a>
  </dl></dd>
</dl>
<a name="checkCreateClassLoader()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkCreateClassLoader"><b>checkCreateClassLoader</b></a>
<pre>
 public void checkCreateClassLoader()
</pre>
<dl>
  <dd> Throws a <code>SecurityException</code> if the
 calling thread is not allowed to create a new class loader.
 <p>
 The <code>checkCreateClassLoader</code> method for class
 <code>SecurityManager</code> always throws a
 <code>SecurityException</code>.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the caller does not have permission
             to create a new class loader.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.ClassLoader.html#ClassLoader()">ClassLoader</a>
  </dl></dd>
</dl>
<a name="checkAccess(java.lang.Thread)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkAccess"><b>checkAccess</b></a>
<pre>
 public void checkAccess(<a href="java.lang.Thread.html#_top_">Thread</a> g)
</pre>
<dl>
  <dd> Throws a <code>SecurityException</code> if the
 calling thread is not allowed to modify the thread argument.
 <p>
 This method is invoked for the current security manager by the
 <code>stop</code>, <code>suspend</code>, <code>resume</code>,
 <code>setPriority</code>, <code>setName</code>, and
 <code>setDaemon</code> methods of class <code>Thread</code>.
 <p>
 The <code>checkAccess</code> method for class
 <code>SecurityManager</code> always throws a
 <code>SecurityException</code>.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> g - the thread to be checked.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the caller does not have permission
               to modify the thread.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.System.html#getSecurityManager()">getSecurityManager</a>, <a href="java.lang.Thread.html#resume()">resume</a>, <a href="java.lang.Thread.html#setDaemon(boolean)">setDaemon</a>, <a href="java.lang.Thread.html#setName(java.lang.String)">setName</a>, <a href="java.lang.Thread.html#setPriority(int)">setPriority</a>, <a href="java.lang.Thread.html#stop()">stop</a>, <a href="java.lang.Thread.html#suspend()">suspend</a>
  </dl></dd>
</dl>
<a name="checkAccess(java.lang.ThreadGroup)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkAccess"><b>checkAccess</b></a>
<pre>
 public void checkAccess(<a href="java.lang.ThreadGroup.html#_top_">ThreadGroup</a> g)
</pre>
<dl>
  <dd> Throws a <code>SecurityException</code> if the
 calling thread is not allowed to modify the thread group argument.
 <p>
 This method is invoked for the current security manager when a
 new child thread or child thread group is created, and by the
 <code>setDaemon</code>, <code>setMaxPriority</code>,
 <code>stop</code>, <code>suspend</code>, <code>resume</code>, and
 <code>destroy</code> methods of class <code>ThreadGroup</code>.
 <p>
 The <code>checkAccess</code> method for class
 <code>SecurityManager</code> always throws a
 <code>SecurityException</code>.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> g - the thread group to be checked.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the caller does not have permission
               to modify the thread group.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.System.html#getSecurityManager()">getSecurityManager</a>, <a href="java.lang.ThreadGroup.html#destroy()">destroy</a>, <a href="java.lang.ThreadGroup.html#resume()">resume</a>, <a href="java.lang.ThreadGroup.html#setDaemon(boolean)">setDaemon</a>, <a href="java.lang.ThreadGroup.html#setMaxPriority(int)">setMaxPriority</a>, <a href="java.lang.ThreadGroup.html#stop()">stop</a>, <a href="java.lang.ThreadGroup.html#suspend()">suspend</a>
  </dl></dd>
</dl>
<a name="checkExit(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkExit"><b>checkExit</b></a>
<pre>
 public void checkExit(int status)
</pre>
<dl>
  <dd> Throws a <code>SecurityException</code> if the
 calling thread is not allowed to cause the Java Virtual Machine to
 halt with the specified status code.
 <p>
 This method is invoked for the current security manager by the
 <code>exit</code> method of class <code>Runtime</code>. A status
 of <code>0</code> indicates success; other values indicate various
 errors.
 <p>
 The <code>checkExit</code> method for class
 <code>SecurityManager</code> always throws a
 <code>SecurityException</code>.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> status - the exit status.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the caller does not have permission
               to halt the Java Virtual Machine with the specified status.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.Runtime.html#exit(int)">exit</a>, <a href="java.lang.System.html#getSecurityManager()">getSecurityManager</a>
  </dl></dd>
</dl>
<a name="checkExec(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkExec"><b>checkExec</b></a>
<pre>
 public void checkExec(<a href="java.lang.String.html#_top_">String</a> cmd)
</pre>
<dl>
  <dd> Throws a <code>SecurityException</code> if the
 calling thread is not allowed to create a subprocess.
 <p>
 This method is invoked for the current security manager by the
 <code>exec</code> methods of class <code>Runtime</code>.
 <p>
 The <code>checkExec</code> method for class
 <code>SecurityManager</code> always throws a
 <code>SecurityException</code>.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> cmd - the specified system command.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the caller does not have permission
               to create a subprocess.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.Runtime.html#exec(java.lang.String)">exec</a>, <a href="java.lang.Runtime.html#exec(java.lang.String, java.lang.String[])">exec</a>, <a href="java.lang.Runtime.html#exec(java.lang.String[])">exec</a>, <a href="java.lang.Runtime.html#exec(java.lang.String[], java.lang.String[])">exec</a>, <a href="java.lang.System.html#getSecurityManager()">getSecurityManager</a>
  </dl></dd>
</dl>
<a name="checkLink(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkLink"><b>checkLink</b></a>
<pre>
 public void checkLink(<a href="java.lang.String.html#_top_">String</a> lib)
</pre>
<dl>
  <dd> Throws a <code>SecurityException</code> if the
 calling thread is not allowed to dynamic link the library code
 specified by the string argument file. The argument is either a
 simple library name or a complete filename.
 <p>
 This method is invoked for the current security manager by
 methods <code>load</code> and <code>loadLibrary</code> of class
 <code>Runtime</code>.
 <p>
 The <code>checkLink</code> method for class
 <code>SecurityManager</code> always throws a
 <code>SecurityException</code>.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> lib - the name of the library.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the caller does not have permission
               to dynamically link the library.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.Runtime.html#load(java.lang.String)">load</a>, <a href="java.lang.Runtime.html#loadLibrary(java.lang.String)">loadLibrary</a>, <a href="java.lang.System.html#getSecurityManager()">getSecurityManager</a>
  </dl></dd>
</dl>
<a name="checkRead(java.io.FileDescriptor)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkRead"><b>checkRead</b></a>
<pre>
 public void checkRead(<a href="java.io.FileDescriptor.html#_top_">FileDescriptor</a> fd)
</pre>
<dl>
  <dd> Throws a <code>SecurityException</code> if the
 calling thread is not allowed to read from the specified file
 descriptor.
 <p>
 The <code>checkRead</code> method for class
 <code>SecurityManager</code> always throws a
 <code>SecurityException</code>.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> fd - the system-dependent file descriptor.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the caller does not have permission
               to access the specified file descriptor.
    <dt> <b>See Also:</b>
    <dd> <a href="java.io.FileDescriptor.html#_top_">FileDescriptor</a>
  </dl></dd>
</dl>
<a name="checkRead(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkRead"><b>checkRead</b></a>
<pre>
 public void checkRead(<a href="java.lang.String.html#_top_">String</a> file)
</pre>
<dl>
  <dd> Throws a <code>SecurityException</code> if the
 calling thread is not allowed to read the file specified by the
 string argument.
 <p>
 The <code>checkRead</code> method for class
 <code>SecurityManager</code> always throws a
 <code>SecurityException</code>.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> file - the system-dependent file name.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the caller does not have permission
               to access the specified file.
  </dl></dd>
</dl>
<a name="checkRead(java.lang.String, java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkRead"><b>checkRead</b></a>
<pre>
 public void checkRead(<a href="java.lang.String.html#_top_">String</a> file,
                       <a href="java.lang.Object.html#_top_">Object</a> context)
</pre>
<dl>
  <dd> Throws a <code>SecurityException</code> if the
 specified security context is not allowed to read the file
 specified by the string argument. The context must be a security
 context returned by a previous call to
 <code>getSecurityContext</code>.
 <p>
 The <code>checkRead</code> method for class
 <code>SecurityManager</code> always throws a
 <code>SecurityException</code>.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> file - the system-dependent filename.
    <dd> context - a system-dependent security context.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the specified security context does
               not have permission to read the specified file.
    <dt> <b>See Also:</b>
    <dd> <a href="#getSecurityContext()">getSecurityContext</a>
  </dl></dd>
</dl>
<a name="checkWrite(java.io.FileDescriptor)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkWrite"><b>checkWrite</b></a>
<pre>
 public void checkWrite(<a href="java.io.FileDescriptor.html#_top_">FileDescriptor</a> fd)
</pre>
<dl>
  <dd> Throws a <code>SecurityException</code> if the
 calling thread is not allowed to write to the specified file
 descriptor.
 <p>
 The <code>checkWrite</code> method for class
 <code>SecurityManager</code> always throws a
 <code>SecurityException</code>.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> fd - the system-dependent file descriptor.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the caller does not have permission
               to access the specified file descriptor.
    <dt> <b>See Also:</b>
    <dd> <a href="java.io.FileDescriptor.html#_top_">FileDescriptor</a>
  </dl></dd>
</dl>
<a name="checkWrite(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkWrite"><b>checkWrite</b></a>
<pre>
 public void checkWrite(<a href="java.lang.String.html#_top_">String</a> file)
</pre>
<dl>
  <dd> Throws a <code>SecurityException</code> if the
 calling thread is not allowed to write to the file specified by
 the string argument.
 <p>
 The <code>checkWrite</code> method for class
 <code>SecurityManager</code> always throws a
 <code>SecurityException</code>.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> file - the system-dependent filename.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the caller does not have permission
               to access the specified file.
  </dl></dd>
</dl>
<a name="checkDelete(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkDelete"><b>checkDelete</b></a>
<pre>
 public void checkDelete(<a href="java.lang.String.html#_top_">String</a> file)
</pre>
<dl>
  <dd> Throws a <code>SecurityException</code> if the
 calling thread is not allowed to delete the specified file.
 <p>
 This method is invoked for the current security manager by the
 <code>delete</code> method of class <code>File</code>.
 <p>
 The <code>checkDelete</code> method for class
 <code>SecurityManager</code> always throws a
 <code>SecurityException</code>.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> file - the system-dependent filename.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the caller does not have permission
               to delete the file.
    <dt> <b>See Also:</b>
    <dd> <a href="java.io.File.html#delete()">delete</a>, <a href="java.lang.System.html#getSecurityManager()">getSecurityManager</a>
  </dl></dd>
</dl>
<a name="checkConnect(java.lang.String, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkConnect"><b>checkConnect</b></a>
<pre>
 public void checkConnect(<a href="java.lang.String.html#_top_">String</a> host,
                          int port)
</pre>
<dl>
  <dd> Throws a <code>SecurityException</code> if the
 calling thread is not allowed to open a socket connection to the
 specified host and port number.
 <p>
 A port number of <code>-1</code> indicates that the calling
 method is attempting to determine the IP address of the specified
 host name.
 <p>
 The <code>checkConnect</code> method for class
 <code>SecurityManager</code> always throws a
 <code>SecurityException</code>.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> host - the host name port to connect to.
    <dd> port - the protocol port to connect to.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the caller does not have permission
               to open a socket connection to the specified
               <code>host</code> and <code>port</code>.
  </dl></dd>
</dl>
<a name="checkConnect(java.lang.String, int, java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkConnect"><b>checkConnect</b></a>
<pre>
 public void checkConnect(<a href="java.lang.String.html#_top_">String</a> host,
                          int port,
                          <a href="java.lang.Object.html#_top_">Object</a> context)
</pre>
<dl>
  <dd> Throws a <code>SecurityException</code> if the
 specified security context is not allowed to open a socket
 connection to the specified host and port number.
 <p>
 A port number of <code>-1</code> indicates that the calling
 method is attempting to determine the IP address of the specified
 host name.
 <p>
 The <code>checkConnect</code> method for class
 <code>SecurityManager</code> always throws a
 <code>SecurityException</code>.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> host - the host name port to connect to.
    <dd> port - the protocol port to connect to.
    <dd> context - a system-dependent security context.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the specified security context does
               not have permission to open a socket connection to the
               specified <code>host</code> and <code>port</code>.
    <dt> <b>See Also:</b>
    <dd> <a href="#getSecurityContext()">getSecurityContext</a>
  </dl></dd>
</dl>
<a name="checkListen(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkListen"><b>checkListen</b></a>
<pre>
 public void checkListen(int port)
</pre>
<dl>
  <dd> Throws a <code>SecurityException</code> if the
 calling thread is not allowed to wait for a connection request on
 the specified local port number.
 <p>
 The <code>checkListen</code> method for class
 <code>SecurityManager</code> always throws a
 <code>SecurityException</code>.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> port - the local port.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the caller does not have permission
               to listen on the specified port.
  </dl></dd>
</dl>
<a name="checkAccept(java.lang.String, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkAccept"><b>checkAccept</b></a>
<pre>
 public void checkAccept(<a href="java.lang.String.html#_top_">String</a> host,
                         int port)
</pre>
<dl>
  <dd> Throws a <code>SecurityException</code> if the
 calling thread is not permitted to accept a socket connection from
 the specified host and port number.
 <p>
 This method is invoked for the current security manager by the
 <code>accept</code> method of class <code>ServerSocket</code>.
 <p>
 The <code>checkAccept</code> method for class
 <code>SecurityManager</code> always throws a
 <code>SecurityException</code>.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> host - the host name of the socket connection.
    <dd> port - the port number of the socket connection.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the caller does not have permission
               to accept the connection.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.System.html#getSecurityManager()">getSecurityManager</a>, <a href="java.net.ServerSocket.html#accept()">accept</a>
  </dl></dd>
</dl>
<a name="checkMulticast(java.net.InetAddress)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkMulticast"><b>checkMulticast</b></a>
<pre>
 public void checkMulticast(<a href="java.net.InetAddress.html#_top_">InetAddress</a> maddr)
</pre>
<dl>
  <dd> Tests if current execution context is allowed to use
 (join/leave/send/receive) IP multicast.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> multicast - Internet group address to be used.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if a security error has occurred.
  </dl></dd>
</dl>
<a name="checkMulticast(java.net.InetAddress, byte)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkMulticast"><b>checkMulticast</b></a>
<pre>
 public void checkMulticast(<a href="java.net.InetAddress.html#_top_">InetAddress</a> maddr,
                            byte ttl)
</pre>
<dl>
  <dd> Tests to see if current execution context is allowed to use
 (join/leave/send/receive) IP multicast.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> multicast - Internet group address to be used.
    <dd> ttl - value in use, if it is multicast send.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if a security error has occurred.
  </dl></dd>
</dl>
<a name="checkPropertiesAccess()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkPropertiesAccess"><b>checkPropertiesAccess</b></a>
<pre>
 public void checkPropertiesAccess()
</pre>
<dl>
  <dd> Throws a <code>SecurityException</code> if the
 calling thread is not allowed to access or modify the system
 properties.
 <p>
 This method is used by the <code>getProperties</code> and
 <code>setProperties</code> methods of class <code>System</code>.
 <p>
 The <code>checkPropertiesAccess</code> method for class
 <code>SecurityManager</code> always throws a
 <code>SecurityException</code>.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the caller does not have permission
               to access or modify the system properties.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.System.html#getProperties()">getProperties</a>, <a href="java.lang.System.html#setProperties(java.util.Properties)">setProperties</a>
  </dl></dd>
</dl>
<a name="checkPropertyAccess(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkPropertyAccess"><b>checkPropertyAccess</b></a>
<pre>
 public void checkPropertyAccess(<a href="java.lang.String.html#_top_">String</a> key)
</pre>
<dl>
  <dd> Throws a <code>SecurityException</code> if the
 calling thread is not allowed to access the system property with
 the specified <code>key</code> name.
 <p>
 This method is used by the <code>getProperty</code> method of
 class <code>System</code>.
 <p>
 The <code>checkPropertiesAccess</code> method for class
 <code>SecurityManager</code> always throws a
 <code>SecurityException</code>.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> key - a system property key.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the caller does not have permission
               to access the specified system property.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.System.html#getProperty(java.lang.String)">getProperty</a>
  </dl></dd>
</dl>
<a name="checkTopLevelWindow(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkTopLevelWindow"><b>checkTopLevelWindow</b></a>
<pre>
 public boolean checkTopLevelWindow(<a href="java.lang.Object.html#_top_">Object</a> window)
</pre>
<dl>
  <dd> Returns <code>false</code> if the calling
 thread is not trusted to bring up the top-level window indicated
 by the <code>window</code> argument. In this case, the caller can
 still decide to show the window, but the window should include
 some sort of visual warning. If the method returns
 <code>true</code>, then the window can be shown without any
 special restrictions.
 <p>
 See class <code>Window</code> for more information on trusted and
 untrusted windows.
 <p>
 The <code>checkSetFactory</code> method for class
 <code>SecurityManager</code> always returns <code>false</code>.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> window - the new window that is being created.
    <dt> <b>Returns:</b>
    <dd> <code>true</code> if the caller is trusted to put up
             top-level windows; <code>false</code> otherwise.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if creation is disallowed entirely.
    <dt> <b>See Also:</b>
    <dd> <a href="java.awt.Window.html#_top_">Window</a>
  </dl></dd>
</dl>
<a name="checkPrintJobAccess()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkPrintJobAccess"><b>checkPrintJobAccess</b></a>
<pre>
 public void checkPrintJobAccess()
</pre>
<dl>
  <dd> Tests if a client can initiate a print job request.
<p>
</dl>
<a name="checkSystemClipboardAccess()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkSystemClipboardAccess"><b>checkSystemClipboardAccess</b></a>
<pre>
 public void checkSystemClipboardAccess()
</pre>
<dl>
  <dd> Tests if a client can get access to the system clipboard.
<p>
</dl>
<a name="checkAwtEventQueueAccess()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkAwtEventQueueAccess"><b>checkAwtEventQueueAccess</b></a>
<pre>
 public void checkAwtEventQueueAccess()
</pre>
<dl>
  <dd> Tests if a client can get access to the AWT event queue.
<p>
</dl>
<a name="checkPackageAccess(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkPackageAccess"><b>checkPackageAccess</b></a>
<pre>
 public void checkPackageAccess(<a href="java.lang.String.html#_top_">String</a> pkg)
</pre>
<dl>
  <dd> Throws a <code>SecurityException</code> if the
 calling thread is not allowed to access the package specified by
 the argument.
 <p>
 This method is used by the <code>loadClass</code> method of class
 loaders.
 <p>
 The <code>checkPackageAccess</code> method for class
 <code>SecurityManager</code> always throws a
 <code>SecurityException</code>.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> pkg - the package name.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the caller does not have permission
               to access the specified package.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.ClassLoader.html#loadClass(java.lang.String, boolean)">loadClass</a>
  </dl></dd>
</dl>
<a name="checkPackageDefinition(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkPackageDefinition"><b>checkPackageDefinition</b></a>
<pre>
 public void checkPackageDefinition(<a href="java.lang.String.html#_top_">String</a> pkg)
</pre>
<dl>
  <dd> Throws a <code>SecurityException</code> if the
 calling thread is not allowed to define classes in the package
 specified by the argument.
 <p>
 This method is used by the <code>loadClass</code> method of some
 class loaders.
 <p>
 The <code>checkPackageDefinition</code> method for class
 <code>SecurityManager</code> always throws a
 <code>SecurityException</code>.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> pkg - the package name.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the caller does not have permission
               to define classes in the specified package.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.ClassLoader.html#loadClass(java.lang.String, boolean)">loadClass</a>
  </dl></dd>
</dl>
<a name="checkSetFactory()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkSetFactory"><b>checkSetFactory</b></a>
<pre>
 public void checkSetFactory()
</pre>
<dl>
  <dd> Throws a <code>SecurityException</code> if the
 calling thread is not allowed to set the socket factory used by
 <code>ServerSocket</code> or <code>Socket</code>, or the stream
 handler factory used by <code>URL</code>.
 <p>
 The <code>checkSetFactory</code> method for class
 <code>SecurityManager</code> always throws a
 <code>SecurityException</code>.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the caller does not have permission
               to specify a socket factory or a stream handler factory.
    <dt> <b>See Also:</b>
    <dd> <a href="java.net.ServerSocket.html#setSocketFactory(java.net.SocketImplFactory)">setSocketFactory</a>, <a href="java.net.Socket.html#setSocketImplFactory(java.net.SocketImplFactory)">setSocketImplFactory</a>, <a href="java.net.URL.html#setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory)">setURLStreamHandlerFactory</a>
  </dl></dd>
</dl>
<a name="checkMemberAccess(java.lang.Class, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkMemberAccess"><b>checkMemberAccess</b></a>
<pre>
 public void checkMemberAccess(<a href="java.lang.Class.html#_top_">Class</a> clazz,
                               int which)
</pre>
<dl>
  <dd> Tests if a client is allowed to access members. If access is
 denied, throw a SecurityException.
 The default policy is to deny all accesses.
<p>
</dl>
<a name="checkSecurityAccess(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkSecurityAccess"><b>checkSecurityAccess</b></a>
<pre>
 public void checkSecurityAccess(<a href="java.lang.String.html#_top_">String</a> action)
</pre>
<dl>
  <dd> Tests access to certain operations for a security API
 action.
<p>
</dl>
<a name="getThreadGroup()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getThreadGroup"><b>getThreadGroup</b></a>
<pre>
 public <a href="java.lang.ThreadGroup.html#_top_">ThreadGroup</a> getThreadGroup()
</pre>
<dl>
  <dd> Returns the thread group into which to instantiate any new
 thread being created at the time this is being called.
 By default, it returns the thread group of the current
 thread. This should be overriden by specific security
 manager to return the appropriate thread group.
<p>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.lang.html">This Package</a>  <a href="java.lang.Runtime.html#_top_">Previous</a>  <a href="java.lang.Short.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
