this ACL entry. Returns null if there is no principal set for this
entry yet. 返回该ACL入口中许可授予或拒绝的主体。如果该ACL入口中还没有主体设置给该入口返回null。
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the principal associated with this entry. 与该入口相关的主体。<DT><B>See Also:</B><DD><A HREF="../../../java/security/acl/AclEntry.html#setPrincipal(java.security.Principal)"><CODE>setPrincipal(java.security.Principal)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setNegativePermissions()"><!-- --></A><H3>
setNegativePermissions</H3>
<PRE>
public void <B>setNegativePermissions</B>()</PRE>
<DL>
<DD>Sets this ACL entry to be a negative one. That is, the associated
principal (e.g., a user or a group) will be denied the permission set
specified in the entry.
Note: ACL entries are by default positive. An entry becomes a
negative entry only if this <code>setNegativePermissions</code>
method is called on it.
将该ACL入口设置为否定。也就是说,入口将指定关联主体(用户或组)拒绝该许可集合。
注:ACL入口默认为肯定。只有调用setNegativePermissions方法入口才会成为否定入口。
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="isNegative()"><!-- --></A><H3>
isNegative</H3>
<PRE>
public boolean <B>isNegative</B>()</PRE>
<DL>
<DD>Returns true if this is a negative ACL entry (one denying the
associated principal the set of permissions in the entry), false
otherwise.
如果这是一个否定ACL入口(入口中拒绝相关主体以许可集合),返回true,否则为false。
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>true if this is a negative ACL entry, false if it's not. 如果这是一个否定ACL入口,返回true,否则为false。</DL>
</DD>
</DL>
<HR>
<A NAME="addPermission(java.security.acl.Permission)"><!-- --></A><H3>
addPermission</H3>
<PRE>
public boolean <B>addPermission</B>(<A HREF="../../../java/security/acl/Permission.html" title="interface in java.security.acl">Permission</A> permission)</PRE>
<DL>
<DD>Adds the specified permission to this ACL entry. Note: An entry can
have multiple permissions.
给该ACL入口添加指定许可。注:一个入口可以有多个许可。
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>permission</CODE> - the permission to be associated with
the principal in this entry. 入口中关联给该主体的许可。
<DT><B>Returns:</B><DD>true if the permission was added, false if the
permission was already part of this entry's permission set.
如果许可被添加,返回true,如果许可已经是该入口许可集合的一部分,返回false。</DL>
</DD>
</DL>
<HR>
<A NAME="removePermission(java.security.acl.Permission)"><!-- --></A><H3>
removePermission</H3>
<PRE>
public boolean <B>removePermission</B>(<A HREF="../../../java/security/acl/Permission.html" title="interface in java.security.acl">Permission</A> permission)</PRE>
<DL>
<DD>Removes the specified permission from this ACL entry.
从该ACL入口中删除指定的许可。
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>permission</CODE> - the permission to be removed from this entry. 从该入口中被删除的许可。
<DT><B>Returns:</B><DD>true if the permission is removed, false if the
permission was not part of this entry's permission set.
如果该许可被删除,返回true,如果该许可不是该入口许可集合的一部分,返回false。</DL>
</DD>
</DL>
<HR>
<A NAME="checkPermission(java.security.acl.Permission)"><!-- --></A><H3>
文章整理:西部数码--专业提供域名注册、虚拟主机服务
checkPermission</H3>
<PRE>
public boolean <B>checkPermission</B>(<A HREF="../../../java/security/acl/Permission.html" title="interface in java.security.acl">Permission</A> permission)</PRE>
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!




