Data and IdentityCertificate: Make Data::setName virtual so that IdentityCertificate::setName is sure to validate the name.
diff --git a/ndn-cpp/data.cpp b/ndn-cpp/data.cpp
index 62cdf3b..a31878e 100644
--- a/ndn-cpp/data.cpp
+++ b/ndn-cpp/data.cpp
@@ -93,6 +93,14 @@
   onChanged();
 }
 
+Data& 
+Data::setName(const Name& name) 
+{ 
+  name_ = name; 
+  onChanged();
+  return *this;
+}
+
 SignedBlob 
 Data::wireEncode(WireFormat& wireFormat) 
 {