20 #ifndef NDN_NAC_ACCESS_MANAGER_HPP
21 #define NDN_NAC_ACCESS_MANAGER_HPP
25 #include <ndn-cxx/face.hpp>
41 class Error :
public std::runtime_error
44 using std::runtime_error::runtime_error;
68 KeyChain& keyChain, Face& face);
105 InMemoryStorage::const_iterator
108 return m_ims.begin();
116 InMemoryStorage::const_iterator
125 KeyChain& m_keyChain;
128 InMemoryStoragePersistent m_ims;
129 ScopedRegisteredPrefixHandle m_kekReg;
130 ScopedRegisteredPrefixHandle m_kdkReg;
AccessManager(const Identity &identity, const Name &dataset, KeyChain &keyChain, Face &face)
InMemoryStorage::const_iterator end() const
Returns end iterator of the in-memory storage ordered by name with digest.
Data addMember(const Certificate &memberCert)
Authorize a member identified by its certificate memberCert to decrypt data under the policy.
InMemoryStorage::const_iterator begin() const
Returns begin iterator of the in-memory storage ordered by name with digest.
void removeMember(const Name &identity)
Remove member with name identity from the group.