17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package java.security.acl;
27
28 import java.security.Principal;
29
30 /**
31 * Interface for managing owners of Access Control Lists (ACLs) or ACL
32 * configurations. (Note that the Acl interface in the
33 * {@code java.security.acl} package extends this Owner
34 * interface.) The initial owner Principal should be specified as an
35 * argument to the constructor of the class implementing this interface.
36 *
37 * @see java.security.acl.Acl
38 *
39 * @deprecated This package has been replaced by {@code java.security.Policy}
40 * and related classes since 1.2.
41 */
42 @Deprecated(since="9")
43 public interface Owner {
44
45 /**
46 * Adds an owner. Only owners can modify ACL contents. The caller
47 * principal must be an owner of the ACL in order to invoke this method.
48 * That is, only an owner can add another owner. The initial owner is
49 * configured at ACL construction time.
50 *
51 * @param caller the principal invoking this method. It must be an owner
52 * of the ACL.
53 *
54 * @param owner the owner that should be added to the list of owners.
55 *
56 * @return true if successful, false if owner is already an owner.
|
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package java.security.acl;
27
28 import java.security.Principal;
29
30 /**
31 * Interface for managing owners of Access Control Lists (ACLs) or ACL
32 * configurations. (Note that the Acl interface in the
33 * {@code java.security.acl} package extends this Owner
34 * interface.) The initial owner Principal should be specified as an
35 * argument to the constructor of the class implementing this interface.
36 *
37 * @since 1.1
38 * @see java.security.acl.Acl
39 *
40 * @deprecated This package has been replaced by {@code java.security.Policy}
41 * and related classes since 1.2.
42 */
43 @Deprecated(since="9")
44 public interface Owner {
45
46 /**
47 * Adds an owner. Only owners can modify ACL contents. The caller
48 * principal must be an owner of the ACL in order to invoke this method.
49 * That is, only an owner can add another owner. The initial owner is
50 * configured at ACL construction time.
51 *
52 * @param caller the principal invoking this method. It must be an owner
53 * of the ACL.
54 *
55 * @param owner the owner that should be added to the list of owners.
56 *
57 * @return true if successful, false if owner is already an owner.
|