public class AclImpl extends Object implements Acl, Serializable
Constructor and Description |
---|
AclImpl()
Constructs a new AclImpl instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addEntry(AclEntry entry)
Adds an ACL entry to this ACL.
|
Enumeration<AclEntry> |
entries()
Returns an enumeration of the entries in this ACL.
|
Principal[] |
findPrincipals(Permission permission)
Returns all Principal objects assigned a given Permission in the access
control list.
|
AclEntry |
getEntry(Principal principal)
Returns an AclEntry for a supplied Principal, or
null if
the Principal does not have a matching AclEntry. |
boolean |
isEmpty()
Returns
true , if this Acl is empty. |
boolean |
removeEntry(AclEntry entry)
Removes an ACL entry from this ACL.
|
String |
toString()
Returns a string representation of the contents of this Acl.
|
public AclImpl()
public Principal[] findPrincipals(Permission permission)
findPrincipals
in interface Acl
permission
- the permission to search forpublic boolean addEntry(AclEntry entry)
public boolean removeEntry(AclEntry entry)
removeEntry
in interface Acl
entry
- the ACL entry to be removed from this ACLpublic Enumeration<AclEntry> entries()
public AclEntry getEntry(Principal principal)
null
if
the Principal does not have a matching AclEntry.Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.