Constructor and Description |
---|
Acl()
Creates a new access control list
|
Modifier and Type | Method and Description |
---|---|
void |
addGrant(Grant g)
Adds a grant to the access control list
|
void |
clear()
Clears all the grants in the ACL.
|
boolean |
contains(Grant g)
Returns true if this ACL contains the specified Grant.
|
int |
count() |
boolean |
equals(java.lang.Object obj)
Returns true if the ACLs are equal.
|
java.util.Iterator<Grant> |
iterator()
Returns an iterator over this ACL's grant objects.
|
void |
removeGrant(Grant g)
Removes a grant from the access control list.
|
java.lang.String |
toString()
Returns the ACL's grant set as a String.
|
public void addGrant(Grant g)
g
- the grant to add.public void removeGrant(Grant g)
g
- the grant to removepublic int count()
public java.util.Iterator<Grant> iterator()
iterator
in interface java.lang.Iterable<Grant>
public void clear()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean contains(Grant g)
g
- the grant to check for