java.security.acl.AclEntry翻译(4)

2008-02-23 09:57:18来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the specified permission from this ACL entry.
从该ACL入口中删除指定的许可。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../java/security/acl/AclEntry.html#setNegativePermissions()">setNegativePermissions</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets this ACL entry to be a negative one.
将该ACL入口设置为否定。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../java/security/acl/AclEntry.html#setPrincipal(java.security.Principal)">setPrincipal</A></B>(<A HREF="../../../java/security/Principal.html" title="interface in java.security">Principal</A>&nbsp;user)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies the principal for which permissions are granted or denied
by this ACL entry. 指定该ACL入口授予或拒绝许可的主体。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../java/lang/String.html" title="class in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../java/security/acl/AclEntry.html#toString()">toString</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string representation of the contents of this ACL entry.
返回该ACL入口内容的字符串形式。</TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->


<!-- ========= CONSTRUCTOR DETAIL ======== -->


<!-- ============ 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="setPrincipal(java.security.Principal)"><!-- --></A><H3>
setPrincipal</H3>
<PRE>
public boolean <B>setPrincipal</B>(<A HREF="../../../java/security/Principal.html" title="interface in java.security">Principal</A>&nbsp;user)</PRE>
<DL>
<DD>Specifies the principal for which permissions are granted or denied
by this ACL entry. If a principal was already set for this ACL entry,
false is returned, otherwise true is returned.
指定该ACL入口授予或拒绝许可的主体。如果该主体已被设置给该ACL入口,返回false,否则返回true。
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>user</CODE> - the principal to be set for this entry. 被设置给该入口的主体。
<DT><B>Returns:</B><DD>true if the principal is set, false if there was
already a principal set for this entry.
如果该主体被设置,返回true,如果入口中已有该主体返回false。<DT><B>See Also:</B><DD><A HREF="../../../java/security/acl/AclEntry.html#getPrincipal()"><CODE>getPrincipal()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getPrincipal()"><!-- --></A><H3>
getPrincipal</H3>
<PRE>
public <A HREF="../../../java/security/Principal.html" title="interface in java.security">Principal</A> <B>getPrincipal</B>()</PRE>
<DL>
<DD>Returns the principal for which permissions are granted or denied by

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:虚拟机概论(一)——封面

下一篇:调整 Java I/O 性能