Known Direct Subclasses
AclImpl |
An Access Control List (ACL) is encapsulated by this class. |
|
Class Overview
Class implementing the Owner interface. The
initial owner principal is configured as
part of the constructor.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
From interface
java.security.acl.Owner
|
Public Constructors
Public Methods
public
synchronized
boolean
addOwner
(Principal caller, Principal owner)
Adds an owner. Owners can modify ACL contents and can disassociate
ACLs from the objects they protect in the AclConfig interface.
The caller principal must be a part of the owners list of the ACL in
order to invoke this method. The initial owner is configured
at ACL construction time.
Parameters
caller
| the principal who is invoking this method. |
owner
| The owner that should be added to the owners list. |
Returns
- true if success, false if already an owner.
public
synchronized
boolean
deleteOwner
(Principal caller, Principal owner)
Delete owner. If this is the last owner in the ACL, an exception is
raised.
The caller principal must be a part of the owners list of the ACL in
order to invoke this method.
Parameters
caller
| the principal who is invoking this method. |
owner
| The owner to be removed from the owners list. |
Returns
- true if the owner is removed, false if the owner is not part
of the owners list.
Throws
NotOwnerException
| if the caller principal is not on
the owners list of the Acl. |
LastOwnerException
| if there is only one owner left in the group, then
deleteOwner would leave the ACL owner-less. This exception is raised in such a case.
|
public
synchronized
boolean
isOwner
(Principal owner)
returns if the given principal belongs to the owner list.
Parameters
owner
| The owner to check if part of the owners list |
Returns
- true if the passed principal is in the owner list, false if not.