java.security.acl.Owner |
Known Indirect Subclasses |
The interface to manage owners of objects that require ownership.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a principal to the list of owners.
| |||||||||||
Removes a principal from the list of owners.
| |||||||||||
Checks whether the specified principal is an owner of this object.
|
Adds a principal to the list of owners.
caller | the invoking principal. |
---|---|
owner | the owner to added. |
true
if the owner was added, false
if it was already an owner.NotOwnerException | if the invoking principal is not an owner. |
---|
Removes a principal from the list of owners.
caller | the invoking principal. |
---|---|
owner | the owner to be removed. |
true
if the owner was removed, false
if it was not an owner.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. |
Checks whether the specified principal is an owner of this object.
owner | the principal to check. |
---|
true
if the specified principal is an owner, otherwise false
.