java.security.acl.Owner翻译

类别:Java 点击:0 评论:0 推荐:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.4.2-rc) on Fri Jun 13 00:14:34 PDT 2003 -->
<TITLE>
Owner (Java 2 Platform SE v1.4.2)
</TITLE>

<META NAME="keywords" CONTENT="java.security.acl.Owner interface">
<META NAME="keywords" CONTENT="addOwner()">
<META NAME="keywords" CONTENT="deleteOwner()">
<META NAME="keywords" CONTENT="isOwner()">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="Owner (Java 2 Platform SE v1.4.2)";
}
</SCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Owner.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.4.2</b></EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../java/security/acl/Group.html" title="interface in java.security.acl"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../java/security/acl/Permission.html" title="interface in java.security.acl"><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>  &nbsp;
&nbsp;<A HREF="Owner.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>

</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
java.security.acl</FONT>
<BR>
Interface Owner</H2>
<DL>
<DT><B>All Known Subinterfaces:</B> <DD><A HREF="../../../java/security/acl/Acl.html" title="interface in java.security.acl">Acl</A></DD>
</DL>
<HR>
<DL>
<DT>public interface <B>Owner</B></DL>

<P>
Interface for managing owners of Access Control Lists (ACLs) or ACL
 configurations. (Note that the Acl interface in the
 <code> java.security.acl </code> package extends this Owner
 interface.) The initial owner Principal should be specified as an
 argument to the constructor of the class implementing this interface.
 接口表示访问控制列表(ACL)或其配置的管理所有者。(注意:java.security.acl包中的Acl接口继承该Owner接口。)
 初识所有者Principal应当在实现该接口的类的构造函数中以参数指定。
<P>

<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../java/security/acl/Acl.html" title="interface in java.security.acl"><CODE>Acl</CODE></A></DL>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->


<!-- =========== FIELD SUMMARY =========== -->


<!-- ======== CONSTRUCTOR SUMMARY ======== -->


<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<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>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../java/security/acl/Owner.html#addOwner(java.security.Principal, java.security.Principal)">addOwner</A></B>(<A HREF="../../../java/security/Principal.html" title="interface in java.security">Principal</A>&nbsp;caller,
         <A HREF="../../../java/security/Principal.html" title="interface in java.security">Principal</A>&nbsp;owner)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds an owner.
增加所有者。</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/Owner.html#deleteOwner(java.security.Principal, java.security.Principal)">deleteOwner</A></B>(<A HREF="../../../java/security/Principal.html" title="interface in java.security">Principal</A>&nbsp;caller,
            <A HREF="../../../java/security/Principal.html" title="interface in java.security">Principal</A>&nbsp;owner)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Deletes an owner.
删除所有者。</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/Owner.html#isOwner(java.security.Principal)">isOwner</A></B>(<A HREF="../../../java/security/Principal.html" title="interface in java.security">Principal</A>&nbsp;owner)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the given principal is an owner of the ACL.
如果给定的主体是ACL的所有者,返回true。</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="addOwner(java.security.Principal, java.security.Principal)"><!-- --></A><H3>
addOwner</H3>
<PRE>
public boolean <B>addOwner</B>(<A HREF="../../../java/security/Principal.html" title="interface in java.security">Principal</A>&nbsp;caller,
                        <A HREF="../../../java/security/Principal.html" title="interface in java.security">Principal</A>&nbsp;owner)
                 throws <A HREF="../../../java/security/acl/NotOwnerException.html" title="class in java.security.acl">NotOwnerException</A></PRE>
<DL>
<DD>Adds an owner. Only owners can modify ACL contents. The caller
 principal must be an owner of the ACL in order to invoke this method.
 That is, only an owner can add another owner. The initial owner is
 configured at ACL construction time.
 增加所有者。只有所有者才能修改ACL内容,调用者主体要想调用该方法,必须成为ACL的所有者,也就是说,只用所有者才能增加另一个所有者。
 初识所有者是在ACL构建时配置的。
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>caller</CODE> - the principal invoking this method. It must be an owner
 of the ACL. 调用该方法的主体,它必须是ACL的所有者。<DD><CODE>owner</CODE> - the owner that should be added to the list of owners.
 增加至所有者列表的所有者。
<DT><B>Returns:</B><DD>true if successful, false if owner is already an owner. 如果成功返回true,所有者已经成为所有者时返回false。
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../java/security/acl/NotOwnerException.html" title="class in java.security.acl">NotOwnerException</A></CODE> - if the caller principal is not an owner
 of the ACL. 如果调用主体不是该ACL的所有者时抛出。</DL>
</DD>
</DL>
<HR>

<A NAME="deleteOwner(java.security.Principal, java.security.Principal)"><!-- --></A><H3>
deleteOwner</H3>
<PRE>
public boolean <B>deleteOwner</B>(<A HREF="../../../java/security/Principal.html" title="interface in java.security">Principal</A>&nbsp;caller,
                           <A HREF="../../../java/security/Principal.html" title="interface in java.security">Principal</A>&nbsp;owner)
                    throws <A HREF="../../../java/security/acl/NotOwnerException.html" title="class in java.security.acl">NotOwnerException</A>,
                           <A HREF="../../../java/security/acl/LastOwnerException.html" title="class in java.security.acl">LastOwnerException</A></PRE>
<DL>
<DD>Deletes an owner. If this is the last owner in the ACL, an exception is
 raised.
  删除所有者。如果这是该ACL中的最后一个所有者,生成异常。<p>
 
 The caller principal must be an owner of the ACL in order to invoke
 this method.
 调用者主体必须是该ACl的所有者才能调用该方法。
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>caller</CODE> - the principal invoking this method. It must be an owner 
 of the ACL. 调用该方法的主体,它必须是ACL的所有者。<DD><CODE>owner</CODE> - the owner to be removed from the list of owners. 从所有者列表中删除的所有者。
<DT><B>Returns:</B><DD>true if the owner is removed, false if the owner is not part
 of the list of owners. 如果该所有者被删除,返回true,否则如果该所有者不在所有者列表中返回false。
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../java/security/acl/NotOwnerException.html" title="class in java.security.acl">NotOwnerException</A></CODE> - if the caller principal is not an owner
 of the ACL. 如果调用者主体不是该ACL的所有者时抛出。
<DD><CODE><A HREF="../../../java/security/acl/LastOwnerException.html" title="class in java.security.acl">LastOwnerException</A></CODE> - if there is only one owner left, so that
 deleteOwner would leave the ACL owner-less.
 如果仅剩一个所有者,deleteOwner将使ACL所有者为空时抛出。</DL>
</DD>
</DL>
<HR>

<A NAME="isOwner(java.security.Principal)"><!-- --></A><H3>
isOwner</H3>
<PRE>
public boolean <B>isOwner</B>(<A HREF="../../../java/security/Principal.html" title="interface in java.security">Principal</A>&nbsp;owner)</PRE>
<DL>
<DD>Returns true if the given principal is an owner of the ACL.
如果给定的主体是ACL的所有者,返回true。
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>owner</CODE> - the principal to be checked to determine whether or not
 it is an owner.
 该主体将被检查,以确定它是否是一个所有者。
<DT><B>Returns:</B><DD>true if the passed principal is in the list of owners, false
 if not.
 如果传入的主体是在所有者列表中,返回true,否则为false。</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Owner.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.4.2</b></EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../java/security/acl/Group.html" title="interface in java.security.acl"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../java/security/acl/Permission.html" title="interface in java.security.acl"><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>  &nbsp;
&nbsp;<A HREF="Owner.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>

</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM 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="../../../../relnotes/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>Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href="../../../../relnotes/license.html">license terms</a>. Also see the <a href="http://java.sun.com/docs/redist.html">documentation redistribution policy</a>.</font>
</BODY>
</HTML>

本文地址:http://com.8s8s.com/it/it10573.htm