java.net.SocketPermission翻译(6)
2008-02-23 09:51:40来源:互联网 阅读 ()
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE=" 2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="implies(java.security.Permission)"><!-- --></A><H3>
implies</H3>
<PRE>
public boolean <B>implies</B>(<A HREF="../../java/security/Permission.html" title="class in java.security">Permission</A> p)</PRE>
<DL>
<DD>Checks if this socket permission object "implies" the
specified permission.
检查此套接字许可对象是否隐含有指定的许可。
<P>
More specifically, this method first ensures that all of the following
are true (and returns false if any of them are not):
尤其特别地,该方法首先要保证下列条件为true(如果任何一个不满足返回false):<p>
<ul>
<li> <i>p</i> is an instanceof SocketPermission,
p是SocketPermission的实例<p>
<li> <i>p</i>'s actions are a proper subset of this
object's actions, and
p的动作是该对象动作的正确子集<p>
<li> <i>p</i>'s port range is included in this port range. Note:
port range is ignored when p only contains the action, 'resolve'.
p的端口范围在此对象端口范围内。注意:只有当p仅包含动作“resolve”时,端口范围被忽略。<p>
</ul>
Then <code>implies</code> checks each of the following, in order,
and for each returns true if the stated condition is true:
implies方法按顺序检查下列条件,如果规定条件为true,则每一个都返回true:<p>
<ul>
<li> If this object was initialized with a single IP address and one of <i>p</i>'s
IP addresses is equal to this object's IP address.
如果此对象用单个IP地址初始化,且P参数的IP地址集中的一个同此对象的IP地址相同:<p>
<li>If this object is a wildcard domain (such as *.sun.com), and
如果此对象是一个通配符域名(例如*.sun.com)
<i>p</i>'s canonical name (the name without any preceding *)
ends with this object's canonical host name. For example, *.sun.com
implies *.eng.sun.com..
p参数的规范名称(不包括任何前置*)以此对象的规范主机。例如,*.sun.com隐含了*.eng.sun.com<p>
<li>If this object was not initialized with a single IP address, and one of this
object's IP addresses equals one of <i>p</i>'s IP addresses.
如果此对象不是用单个IP地址初始化,但此对象IP地址中的一个同p参数的IP地址集中的一个相同。<p>
<li>If this canonical name equals <i>p</i>'s canonical name.
如果此规范名称和p的规范名称相同。<p>
</ul>
If none of the above are true, <code>implies</code> returns false.
如果上面的条件有一个不为true,则implies返回false。
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../java/security/Permission.html#implies(java.security.Permission)">implies</A></CODE> in class <CODE><A HREF="../../java/security/Permission.html" title="class in java.security">Permission</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>p</CODE> - the permission to check against. 要检查的许可。
<DT><B>Returns:</B><DD>true if the specified permission is implied by this object,
false if not.
如果此对象隐含有指定的许可,返回true,否则返回false。</DL>
</DD>
</DL>
<HR>
<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
equals</H3>
<PRE>
public boolean <B>equals</B>(<A HREF="../../java/lang/Object.html" title="class in java.lang">Object</A> obj)</PRE>
<DL>
<DD>Checks two SocketPermission objects for equality.
检查两个SocketPermission对象是否相等。
<P>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../java/security/Permission.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../java/security/Permission.html" title="class in java.security">Permission</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object to test for equality with this object. 测试是否同此对象相同的对象。
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash
