Methods Summary |
---|
public boolean | addCommunity(java.lang.String comm)Adds the specified community to this ACL entry. Note: An entry can
have multiple communities.
if (commList.contains(comm)) return false;
commList.addElement(comm);
return true;
|
public boolean | addPermission(java.security.acl.Permission perm)Adds the specified permission to this ACL entry. Note: An entry can
have multiple permissions.
if (permList.contains(perm)) return false;
permList.addElement(perm);
return true;
|
public boolean | checkCommunity(java.lang.String comm)Checks if the specified community is part of the community set in this
entry.
return (commList.contains(comm));
|
public boolean | checkPermission(java.security.acl.Permission perm)Checks if the specified permission is part of the permission set in
this entry.
return (permList.contains(perm));
|
public java.lang.Object | clone()Clones this ACL entry.
AclEntryImpl i;
try {
i = new AclEntryImpl(this);
}catch (UnknownHostException e) {
i = null;
}
return (Object) i;
|
public java.util.Enumeration | communities()Returns an enumeration of the communities in this ACL entry.
return commList.elements();
|
public java.security.Principal | getPrincipal()Returns the principal for which permissions are granted or denied by this ACL
entry. Returns null if there is no principal set for this entry yet.
return princ;
|
public boolean | isNegative()Returns true if this is a negative ACL entry (one denying the associated principal
the set of permissions in the entry), false otherwise.
return neg;
|
public java.util.Enumeration | permissions()Returns an enumeration of the permissions in this ACL entry.
return permList.elements();
|
public boolean | removeCommunity(java.lang.String comm)Removes the specified community from this ACL entry.
if (!commList.contains(comm)) return false;
commList.removeElement(comm);
return true;
|
public boolean | removePermission(java.security.acl.Permission perm)Removes the specified permission from this ACL entry.
if (!permList.contains(perm)) return false;
permList.removeElement(perm);
return true;
|
public void | setNegativePermissions()Sets this ACL entry to be a negative one. That is, the associated principal
(e.g., a user or a group) will be denied the permission set specified in the
entry. Note: ACL entries are by default positive. An entry becomes a negative
entry only if this setNegativePermissions method is called on it.
Not Implemented.
neg = true;
|
public boolean | setPrincipal(java.security.Principal p)Specifies the principal for which permissions are granted or denied by
this ACL entry. If a principal was already set for this ACL entry,
false is returned, otherwise true is returned.
if (princ != null )
return false;
princ = p;
return true;
|
public java.lang.String | toString()Returns a string representation of the contents of this ACL entry.
return "AclEntry:"+princ.toString();
|