FileDocCategorySizeDatePackage
Owner.javaAPI DocAndroid 1.5 API2585Wed May 06 22:41:06 BST 2009java.security.acl

Owner

public interface Owner
The interface to manage owners of objects that require ownership.
see
Acl
see
Principal
since
Android 1.0

Fields Summary
Constructors Summary
Methods Summary
public booleanaddOwner(java.security.Principal caller, java.security.Principal owner)
Adds a principal to the list of owners.

param
caller the invoking principal.
param
owner the owner to added.
return
{@code true} if the owner was added, {@code false} if it was already an owner.
throws
NotOwnerException if the invoking principal is not an owner.
since
Android 1.0

public booleandeleteOwner(java.security.Principal caller, java.security.Principal owner)
Removes a principal from the list of owners.

param
caller the invoking principal.
param
owner the owner to be removed.
return
{@code true} if the owner was removed, {@code false} if it was not an owner.
throws
NotOwnerException if the invoking principal is not an owner.
throws
LastOwnerException if the owner to be removed is the last owner and hence removing it would make this object owner-less.
since
Android 1.0

public booleanisOwner(java.security.Principal owner)
Checks whether the specified principal is an owner of this object.

param
owner the principal to check.
return
{@code true} if the specified principal is an owner, otherwise {@code false}.
since
Android 1.0