security: In Certificate, added getSubjectDescriptionList and getExtensionList.
diff --git a/include/ndn-cpp/security/certificate/certificate.hpp b/include/ndn-cpp/security/certificate/certificate.hpp
index bc6b355..025e420 100644
--- a/include/ndn-cpp/security/certificate/certificate.hpp
+++ b/include/ndn-cpp/security/certificate/certificate.hpp
@@ -52,6 +52,12 @@
*/
void
addSubjectDescription(const CertificateSubjectDescription& description) { subjectDescriptionList_.push_back(description); }
+
+ const SubjectDescriptionList&
+ getSubjectDescriptionList() const { return subjectDescriptionList_; }
+
+ SubjectDescriptionList&
+ getSubjectDescriptionList() { return subjectDescriptionList_; }
/**
* Add a certificate extension.
@@ -60,6 +66,12 @@
void
addExtension(const CertificateExtension& extension) { extensionList_.push_back(extension); }
+ const ExtensionList&
+ getExtensionList() const { return extensionList_; }
+
+ ExtensionList&
+ getExtensionList() { return extensionList_; }
+
void
setNotBefore(const MillisecondsSince1970& notBefore) { notBefore_ = notBefore; }