Home | History | Annotate | Download | only in acl

Lines Matching defs:Owner

33  * {@code  java.security.acl} package extends this Owner
34 * interface.) The initial owner Principal should be specified as an
40 public interface Owner {
43 * Adds an owner. Only owners can modify ACL contents. The caller
44 * principal must be an owner of the ACL in order to invoke this method.
45 * That is, only an owner can add another owner. The initial owner is
48 * @param caller the principal invoking this method. It must be an owner
51 * @param owner the owner that should be added to the list of owners.
53 * @return true if successful, false if owner is already an owner.
54 * @exception NotOwnerException if the caller principal is not an owner
57 public boolean addOwner(Principal caller, Principal owner)
61 * Deletes an owner. If this is the last owner in the ACL, an exception is
64 * The caller principal must be an owner of the ACL in order to invoke
67 * @param caller the principal invoking this method. It must be an owner
70 * @param owner the owner to be removed from the list of owners.
72 * @return true if the owner is removed, false if the owner is not part
75 * @exception NotOwnerException if the caller principal is not an owner
78 * @exception LastOwnerException if there is only one owner left, so that
79 * deleteOwner would leave the ACL owner-less.
81 public boolean deleteOwner(Principal caller, Principal owner)
85 * Returns true if the given principal is an owner of the ACL.
87 * @param owner the principal to be checked to determine whether or not
88 * it is an owner.
93 public boolean isOwner(Principal owner);