<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Interface java.security.acl.Owner
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.security.acl.html">This Package</a>  <a href="java.security.acl.Group.html#_top_">Previous</a>  <a href="java.security.acl.Permission.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Interface java.security.acl.Owner
</h1>
<dl>
  <dt> public interface <b>Owner</b>
</dl>
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.
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.security.acl.Acl.html#_top_">Acl</a>
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#addOwner(java.security.Principal, java.security.Principal)"><b>addOwner</b></a>(Principal, Principal)
  <dd>  Adds an owner.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#deleteOwner(java.security.Principal, java.security.Principal)"><b>deleteOwner</b></a>(Principal, Principal)
  <dd> 
 Deletes an owner.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isOwner(java.security.Principal)"><b>isOwner</b></a>(Principal)
  <dd>  Returns true if the given principal is an owner of the ACL.
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="addOwner(java.security.Principal, java.security.Principal)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="addOwner"><b>addOwner</b></a>
<pre>
 public abstract boolean addOwner(<a href="java.security.Principal.html#_top_">Principal</a> caller,
                                  <a href="java.security.Principal.html#_top_">Principal</a> owner) throws <a href="java.security.acl.NotOwnerException.html#_top_">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.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> caller - the principal invoking this method. It must be an owner
 of the ACL.
    <dd> owner - 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.
    <dt> <b>Throws:</b> <a href="java.security.acl.NotOwnerException.html#_top_">NotOwnerException</a>
    <dd> if the caller principal is not an owner
 of the ACL.
  </dl></dd>
</dl>
<a name="deleteOwner(java.security.Principal, java.security.Principal)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="deleteOwner"><b>deleteOwner</b></a>
<pre>
 public abstract boolean deleteOwner(<a href="java.security.Principal.html#_top_">Principal</a> caller,
                                     <a href="java.security.Principal.html#_top_">Principal</a> owner) throws <a href="java.security.acl.NotOwnerException.html#_top_">NotOwnerException</a>, <a href="java.security.acl.LastOwnerException.html#_top_">LastOwnerException</a>
</pre>
<dl>
  <dd> Deletes an owner. If this is the last owner in the ACL, an exception is 
 raised.<p>
 The caller principal must be an owner of the ACL in order to invoke 
 this method.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> caller - the principal invoking this method. It must be an owner
 of the ACL.
    <dd> owner - 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.
    <dt> <b>Throws:</b> <a href="java.security.acl.NotOwnerException.html#_top_">NotOwnerException</a>
    <dd> if the caller principal is not an owner
 of the ACL.
    <dt> <b>Throws:</b> <a href="java.security.acl.LastOwnerException.html#_top_">LastOwnerException</a>
    <dd> if there is only one owner left, so that
 deleteOwner would leave the ACL owner-less.
  </dl></dd>
</dl>
<a name="isOwner(java.security.Principal)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isOwner"><b>isOwner</b></a>
<pre>
 public abstract boolean isOwner(<a href="java.security.Principal.html#_top_">Principal</a> owner)
</pre>
<dl>
  <dd> Returns true if the given principal is an owner of the ACL.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> owner - 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.
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.security.acl.html">This Package</a>  <a href="java.security.acl.Group.html#_top_">Previous</a>  <a href="java.security.acl.Permission.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
