public class AclImpl extends java.lang.Object implements Acl, java.io.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.
|
java.util.Enumeration |
entries()
Returns an enumeration of the entries in this ACL.
|
java.security.Principal[] |
findPrincipals(java.security.Permission permission)
Returns all Principal objects assigned a given Permission in the access
control list.
|
AclEntry |
getEntry(java.security.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.
|
java.lang.String |
toString()
Returns a string representation of the contents of this Acl.
|
public java.security.Principal[] findPrincipals(java.security.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 java.util.Enumeration entries()
public AclEntry getEntry(java.security.Principal principal)
null
if
the Principal does not have a matching AclEntry.@CheckReturnValue @Nonnull public java.lang.String toString()
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.