security: Add new v2::KeyChain
Change-Id: I5fdf51ecd96b50db2a7cbf730c6e8b1d9fbe09e9
Refs: #2926
diff --git a/src/security/pib/pib.hpp b/src/security/pib/pib.hpp
index 47dbd5c..947e5a5 100644
--- a/src/security/pib/pib.hpp
+++ b/src/security/pib/pib.hpp
@@ -26,9 +26,6 @@
namespace ndn {
namespace security {
-
-class KeyChain;
-
namespace pib {
class PibImpl;
@@ -46,6 +43,10 @@
* the Pib class provides access to identities, and allows setting a default identity. Properties of
* an identity can be accessed after obtaining an Identity object.
*
+ * @note Pib instance is created and managed only by v2::KeyChain. v2::KeyChain::getPib()
+ * returns a const reference to the managed Pib instance, through which it is possible to
+ * retrieve information about identities, keys, and certificates.
+ *
* @throw PibImpl::Error when underlying implementation has non-semantic error.
*/
class Pib : noncopyable
@@ -184,7 +185,7 @@
shared_ptr<PibImpl> m_impl;
- friend class KeyChain;
+ friend class v2::KeyChain;
};
} // namespace pib