Skip to content

Most visited

Recently visited

navigation
Added in API level 1

Owner

public interface Owner

java.security.acl.Owner
Known Indirect Subclasses


The interface to manage owners of objects that require ownership.

See also:

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

addOwner

Added in API level 1
boolean addOwner (Principal caller, 
                Principal owner)

Adds a principal to the list of owners.

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

deleteOwner

Added in API level 1
boolean deleteOwner (Principal caller, 
                Principal owner)

Removes a principal from the list of owners.

Parameters
caller Principal: the invoking principal.
owner Principal: the owner to be removed.
Returns
boolean 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.

isOwner

Added in API level 1
boolean isOwner (Principal owner)

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

Parameters
owner Principal: the principal to check.
Returns
boolean true if the specified principal is an owner, otherwise false.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.