Data and IdentityCertificate: Make Data::setName virtual so that IdentityCertificate::setName is sure to validate the name.
diff --git a/include/ndn-cpp/security/certificate/identity-certificate.hpp b/include/ndn-cpp/security/certificate/identity-certificate.hpp
index 8cb244d..0319774 100644
--- a/include/ndn-cpp/security/certificate/identity-certificate.hpp
+++ b/include/ndn-cpp/security/certificate/identity-certificate.hpp
@@ -35,7 +35,12 @@
   virtual 
   ~IdentityCertificate();
   
-  Data &
+  /**
+   * Override the base class method to check that the name is a valid identity certificate name.
+   * @param name The identity certificate name which is copied.
+   * @return This Data so that you can chain calls to update values.
+   */
+  virtual Data &
   setName(const Name& name);
 
   virtual Name