java.security.acl.AclEntry |
The Access Control List Entry interface definition.
An AclEntry
is a list of the Permission
s that are
granted (positive) or denied (negative) to a Principal
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds the specified permission to this ACL entry.
| |||||||||||
Checks whether the specified permission is in this ACL entry.
| |||||||||||
Clones this ACL entry instance.
| |||||||||||
Returns the principal of this ACL entry.
| |||||||||||
Returns whether this ACL entry is negative.
| |||||||||||
Returns the list of permissions of this ACL entry.
| |||||||||||
Removes the specified permission from this ACL entry.
| |||||||||||
Sets this ACL entry to be negative.
| |||||||||||
Set the principal for this ACL entry.
| |||||||||||
Returns the string representation of this ACL entry.
|
Adds the specified permission to this ACL entry.
permission | the permission to be added. |
---|
true
if the specified permission is added, false
if the
permission was already in this entry.Checks whether the specified permission is in this ACL entry.
permission | the permission to check. |
---|
true
if the permission is in this entry, otherwise false
.Clones this ACL entry instance.
Returns the principal of this ACL entry.
Returns whether this ACL entry is negative.
true
if this ACL entry is negative, false
if it's positive.Returns the list of permissions of this ACL entry.
Removes the specified permission from this ACL entry.
permission | the permission to be removed. |
---|
true
if the permission is removed, false
if the permission was
not in this entry.Sets this ACL entry to be negative.
The permissions in this ACL entry will be denied to the principal associated with this entry.
Note: An ACL entry is positive by default and can only become negative by calling this method.
Set the principal for this ACL entry.
The principal for an ACL entry can only be set once.
user | the principal for this ACL entry. |
---|
true
on success, false
if there is a principal already set for
this entry.Returns the string representation of this ACL entry.