public class AclEntry
extends java.lang.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(java.lang.String... actions)
Constructs an ACL entry with given permitted actions.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String action)
Adds an authorized action (read, write, ...).
|
boolean |
contains(java.lang.String action)
Determines if the action is authorized by this entry.
|
public AclEntry()
public AclEntry(java.lang.String... actions)
actions
- the permitted actions.public AclEntry(AclEntry entry)
entry
- the ACL entry to copy.public void add(java.lang.String action)
action
- the action to authorize.public boolean contains(java.lang.String action)
action
- the action requested.true
if the entry contains the action
, false
otherwise.