📄 aclentry.html
字号:
<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">Principal</A> 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.<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.</DL></DD></DL><HR><A NAME="getPrincipal()"><!-- --></A><H3>getPrincipal</H3><PRE>public <A HREF="../../../java/security/Principal.html">Principal</A> <B>getPrincipal</B>()</PRE><DL><DD>Returns the principal for which permissions are granted or denied by this ACL entry. Returns null if there is no principal set for this entry yet.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the principal associated with this entry.</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.<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.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if this is a negative ACL entry, false if it's not.</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">Permission</A> permission)</PRE><DL><DD>Adds the specified permission to this ACL entry. Note: An entry can have multiple permissions.<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.</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">Permission</A> permission)</PRE><DL><DD>Removes the specified permission from this ACL entry.<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.</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">Permission</A> permission)</PRE><DL><DD>Checks if the specified permission is part of the permission set in this entry.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>permission</CODE> - the permission to be checked for.<DT><B>Returns:</B><DD>true if the permission is part of the permission set in this entry, false otherwise.</DL></DD></DL><HR><A NAME="permissions()"><!-- --></A><H3>permissions</H3><PRE>public <A HREF="../../../java/util/Enumeration.html">Enumeration</A> <B>permissions</B>()</PRE><DL><DD>Returns an enumeration of the permissions in this ACL entry.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an enumeration of the permissions in this ACL entry.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="../../../java/lang/String.html">String</A> <B>toString</B>()</PRE><DL><DD>Returns a string representation of the contents of this ACL entry.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a string representation of the contents.</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public <A HREF="../../../java/lang/Object.html">Object</A> <B>clone</B>()</PRE><DL><DD>Clones this ACL entry.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a clone of this ACL entry.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AclEntry.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../java/security/acl/Acl.html"><B>PREV CLASS</B></A> <A HREF="../../../java/security/acl/Group.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="AclEntry.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -