rib: Accept KeyChain in RibManager constructor

refs: #2390

Change-Id: I45c9aae4bb111d75de63dcbcba4b3e6296eb2426
diff --git a/rib/rib-manager.hpp b/rib/rib-manager.hpp
index 8d90103..e38ee3c 100644
--- a/rib/rib-manager.hpp
+++ b/rib/rib-manager.hpp
@@ -61,8 +61,7 @@
     }
   };
 
-  explicit
-  RibManager(ndn::Face& face);
+  RibManager(ndn::Face& face, ndn::KeyChain& keyChain);
 
   ~RibManager();
 
@@ -202,8 +201,8 @@
 
 private:
   ndn::Face& m_face;
+  ndn::KeyChain& m_keyChain;
   ndn::nfd::Controller m_nfdController;
-  ndn::KeyChain m_keyChain;
   ndn::ValidatorConfig m_localhostValidator;
   ndn::ValidatorConfig m_localhopValidator;
   ndn::nfd::FaceMonitor m_faceMonitor;