Access Control List (ACL).
More...
#include <base/security/AccessControlList.h>
Inherits Object.
Access Control List (ACL).
Access Control List (ACL).
- See also
- AccessControlEntry
- Version
- 1.0
◆ Permissions
◆ AccessControlList() [1/2]
AccessControlList::AccessControlList |
( |
| ) |
|
|
noexcept |
Initialize ACL with no entries.
◆ AccessControlList() [2/2]
Initializes object from other object.
◆ add()
Adds an entry to the ACL.
- Parameters
-
entry | The access control entry. |
replace | Specifies whether to replace or merge (using the AND operator) the permissions. The default is to merge. |
- Returns
- True, if the trustee already was contained within the ACL.
◆ getACE()
Returns the access control entry for the specified trustee. Raises InvalidKey if no entry is available for the specified truste.
◆ getEffectiveAccess()
Returns the access of the trustee as specified by this ACL.
◆ getGroup()
const Trustee& AccessControlList::getGroup |
( |
| ) |
|
|
inlinenoexcept |
Returns the associated primary group.
◆ getOwner()
const Trustee& AccessControlList::getOwner |
( |
| ) |
|
|
inlinenoexcept |
Returns the associated owner.
◆ getReadEnumerator()
Returns an enumerator for non-modifying access.
◆ getSize()
MemorySize AccessControlList::getSize |
( |
| ) |
const |
|
inlinenoexcept |
Returns the number of entries in the list.
◆ hasTrustee()
bool AccessControlList::hasTrustee |
( |
const Trustee & |
trustee | ) |
const |
|
noexcept |
Returns true if an entry is available for the specified trustee.
◆ isEmpty()
bool AccessControlList::isEmpty |
( |
| ) |
const |
|
inlinenoexcept |
Returns true if the ACL is empty.
◆ operator=()
Assignment of object by object.
◆ remove() [1/2]
bool AccessControlList::remove |
( |
const Trustee & |
trustee | ) |
|
|
noexcept |
Removes a trustee from the list.
- Returns
- False, if the list has no entry for the specified trustee.
◆ remove() [2/2]
void AccessControlList::remove |
( |
unsigned int |
index | ) |
|
Removes the entry at the specified index.
◆ setGroup()
void AccessControlList::setGroup |
( |
const Trustee & |
group | ) |
|
|
inlinenoexcept |
Set the associated primary group.
◆ setOwner()
void AccessControlList::setOwner |
( |
const Trustee & |
owner | ) |
|
|
inlinenoexcept |
Set the associated owner.