public class AclEntry extends Object
Uses a growing array of authorized actions.
ArrayTools
Constructor and Description |
---|
AclEntry()
Constructs an empty ACL entry.
|
AclEntry(AclEntry entry)
Constructs a copy of the ACL entry.
|
AclEntry(String... actions)
Constructs an ACL entry with given permitted actions.
|
Modifier and Type | Method and Description |
---|---|
void |
add(String action)
Adds an authorized action (read, write, ...).
|
boolean |
contains(String action)
Determines if the action is authorized by this entry.
|
public AclEntry()
public AclEntry(AclEntry entry)
entry
- the ACL entry to copy.public AclEntry(String... actions)
actions
- the permitted actions.public void add(String action)
action
- the action to authorize.public boolean contains(String action)
action
- the action requested.true
if the entry contains the action
, false
otherwise.