📄 securitymanager.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#inCheck">inCheck</A></B></CODE><BR> <B>Deprecated.</B> <I>This type of security checking is not recommended. It is recommended that the <code>checkPermission</code> call be used instead.</I></TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#SecurityManager()">SecurityManager</A></B>()</CODE><BR> Constructs a new <code>SecurityManager</code>.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#checkAccept(java.lang.String, int)">checkAccept</A></B>(<A HREF="../../java/lang/String.html">String</A> host, int port)</CODE><BR> Throws a <code>SecurityException</code> if the calling thread is not permitted to accept a socket connection from the specified host and port number.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#checkAccess(java.lang.Thread)">checkAccess</A></B>(<A HREF="../../java/lang/Thread.html">Thread</A> t)</CODE><BR> Throws a <code>SecurityException</code> if the calling thread is not allowed to modify the thread argument.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#checkAccess(java.lang.ThreadGroup)">checkAccess</A></B>(<A HREF="../../java/lang/ThreadGroup.html">ThreadGroup</A> g)</CODE><BR> Throws a <code>SecurityException</code> if the calling thread is not allowed to modify the thread group argument.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#checkAwtEventQueueAccess()">checkAwtEventQueueAccess</A></B>()</CODE><BR> Throws a <code>SecurityException</code> if the calling thread is not allowed to access the AWT event queue.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#checkConnect(java.lang.String, int)">checkConnect</A></B>(<A HREF="../../java/lang/String.html">String</A> host, int port)</CODE><BR> Throws a <code>SecurityException</code> if the calling thread is not allowed to open a socket connection to the specified host and port number.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#checkConnect(java.lang.String, int, java.lang.Object)">checkConnect</A></B>(<A HREF="../../java/lang/String.html">String</A> host, int port, <A HREF="../../java/lang/Object.html">Object</A> context)</CODE><BR> 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.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#checkCreateClassLoader()">checkCreateClassLoader</A></B>()</CODE><BR> Throws a <code>SecurityException</code> if the calling thread is not allowed to create a new class loader.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#checkDelete(java.lang.String)">checkDelete</A></B>(<A HREF="../../java/lang/String.html">String</A> file)</CODE><BR> Throws a <code>SecurityException</code> if the calling thread is not allowed to delete the specified file.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#checkExec(java.lang.String)">checkExec</A></B>(<A HREF="../../java/lang/String.html">String</A> cmd)</CODE><BR> Throws a <code>SecurityException</code> if the calling thread is not allowed to create a subprocess.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#checkExit(int)">checkExit</A></B>(int status)</CODE><BR> 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.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#checkLink(java.lang.String)">checkLink</A></B>(<A HREF="../../java/lang/String.html">String</A> lib)</CODE><BR> Throws a <code>SecurityException</code> if the calling thread is not allowed to dynamic link the library code specified by the string argument file.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#checkListen(int)">checkListen</A></B>(int port)</CODE><BR> Throws a <code>SecurityException</code> if the calling thread is not allowed to wait for a connection request on the specified local port number.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#checkMemberAccess(java.lang.Class, int)">checkMemberAccess</A></B>(<A HREF="../../java/lang/Class.html">Class</A> clazz, int which)</CODE><BR> Throws a <code>SecurityException</code> if the calling thread is not allowed to access members.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#checkMulticast(java.net.InetAddress)">checkMulticast</A></B>(<A HREF="../../java/net/InetAddress.html">InetAddress</A> maddr)</CODE><BR> Throws a <code>SecurityException</code> if the calling thread is not allowed to use (join/leave/send/receive) IP multicast.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#checkMulticast(java.net.InetAddress, byte)">checkMulticast</A></B>(<A HREF="../../java/net/InetAddress.html">InetAddress</A> maddr, byte ttl)</CODE><BR> Throws a <code>SecurityException</code> if the calling thread is not allowed to use (join/leave/send/receive) IP multicast.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#checkPackageAccess(java.lang.String)">checkPackageAccess</A></B>(<A HREF="../../java/lang/String.html">String</A> pkg)</CODE><BR> Throws a <code>SecurityException</code> if the calling thread is not allowed to access the package specified by the argument.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#checkPackageDefinition(java.lang.String)">checkPackageDefinition</A></B>(<A HREF="../../java/lang/String.html">String</A> pkg)</CODE><BR> Throws a <code>SecurityException</code> if the calling thread is not allowed to define classes in the package specified by the argument.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#checkPermission(java.security.Permission)">checkPermission</A></B>(<A HREF="../../java/security/Permission.html">Permission</A> perm)</CODE><BR> Throws a <code>SecurityException</code> if the requested access, specified by the given permission, is not permitted based on the security policy currently in effect.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#checkPermission(java.security.Permission, java.lang.Object)">checkPermission</A></B>(<A HREF="../../java/security/Permission.html">Permission</A> perm, <A HREF="../../java/lang/Object.html">Object</A> context)</CODE><BR> Throws a <code>SecurityException</code> if the specified security context is denied access to the resource specified by the given permission.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#checkPrintJobAccess()">checkPrintJobAccess</A></B>()</CODE><BR> Throws a <code>SecurityException</code> if the calling thread is not allowed to initiate a print job request.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#checkPropertiesAccess()">checkPropertiesAccess</A></B>()</CODE><BR> Throws a <code>SecurityException</code> if the calling thread is not allowed to access or modify the system properties.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#checkPropertyAccess(java.lang.String)">checkPropertyAccess</A></B>(<A HREF="../../java/lang/String.html">String</A> key)</CODE><BR> Throws a <code>SecurityException</code> if the calling thread is not allowed to access the system property with the specified <code>key</code> name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/SecurityManager.html#checkRead(java.io.FileDescriptor)">checkRead</A></B>(<A HREF="../../java/io/FileDescriptor.html">FileDescriptor</A> fd)</CODE><BR> Throws a <code>SecurityException</code> if the
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -