zookeeper-cpp
ZooKeeper Client for C++
zk::acl Class Referencefinal

An access control list is a wrapper around acl_rule instances. More...

#include <zk/acl.hpp>

Public Types

using iterator = std::vector< acl_rule >::iterator
 
using const_iterator = std::vector< acl_rule >::const_iterator
 
using size_type = std::size_t
 

Public Member Functions

 acl (std::vector< acl_rule > rules) noexcept
 
 acl (std::initializer_list< acl_rule > rules)
 
size_type size () const
 
const acl_ruleoperator[] (size_type idx) const
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
iterator end ()
 
const_iterator end () const
 
const_iterator cend () const
 
void reserve (size_type sz)
 
template<typename... TArgs>
void emplace_back (TArgs &&...args)
 

Detailed Description

An access control list is a wrapper around acl_rule instances.

In general, the ACL system is similar to UNIX file access permissions, where znodes act as files. Unlike UNIX, each znode can have any number of ACLs to correspond with the potentially limitless (and pluggable) authentication schemes. A more surprising difference is that ACLs are not recursive: If /path is only readable by a single user, but /path/sub is world-readable, then anyone will be able to read /path/sub.

See also
https://zookeeper.apache.org/doc/trunk/zookeeperProgrammers.html#sc_ZooKeeperAccessControl

Definition at line 124 of file acl.hpp.


The documentation for this class was generated from the following files: