Added setter methods.
diff --git a/ndn-cpp/key.hpp b/ndn-cpp/key.hpp
index fd9df2b..d137b60 100644
--- a/ndn-cpp/key.hpp
+++ b/ndn-cpp/key.hpp
@@ -35,7 +35,17 @@
   
   const std::vector<unsigned char> getKeyOrCertificate() const { return keyOrCertificate_; }
 
-  // TODO: Implement keyName.
+  // TODO: Implement getKeyName.
+
+  void setType(ndn_KeyLocatorType type) { type_ = type; }
+  
+  void setKeyOrCertificate(const std::vector<unsigned char> &keyOrCertificate) { keyOrCertificate_ = keyOrCertificate; }
+  void setKeyOrCertificate(const unsigned char *keyOrCertificate, unsigned int keyOrCertificateLength) 
+  { 
+    setVector(keyOrCertificate_, keyOrCertificate, keyOrCertificateLength); 
+  }
+
+  // TODO: Implement setKeyName.
 
 private:
   ndn_KeyLocatorType type_;