Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public interface

Owner

java.security.acl.Owner
Known Indirect Subclasses

Class Overview

The interface to manage owners of objects that require ownership.

Summary

Public Methods
abstract boolean addOwner ( Principal caller, Principal owner)
Adds a principal to the list of owners.
abstract boolean deleteOwner ( Principal caller, Principal owner)
Removes a principal from the list of owners.
abstract boolean isOwner ( Principal owner)
Checks whether the specified principal is an owner of this object.

Public Methods

public abstract boolean addOwner ( Principal caller, Principal owner)

Added in API level 1

Adds a principal to the list of owners.

Parameters
caller the invoking principal.
owner the owner to added.
Returns
  • true if the owner was added, false if it was already an owner.
Throws
NotOwnerException if the invoking principal is not an owner.

public abstract boolean deleteOwner ( Principal caller, Principal owner)

Added in API level 1

Removes a principal from the list of owners.

Parameters
caller the invoking principal.
owner the owner to be removed.
Returns
  • true if the owner was removed, false if it was not an owner.
Throws
NotOwnerException if the invoking principal is not an owner.
LastOwnerException if the owner to be removed is the last owner and hence removing it would make this object owner-less.

public abstract boolean isOwner ( Principal owner)

Added in API level 1

Checks whether the specified principal is an owner of this object.

Parameters
owner the principal to check.
Returns
  • true if the specified principal is an owner, otherwise false .