Implement Certificate and Install interface
Implemented Certificate interface for certificate properties
and install interface to cater for replacing certificate
Change-Id: I06c1b0ee4258a1cf8670f8a9c25254465e1cad48
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
diff --git a/certificate.cpp b/certificate.cpp
index 43b9725..afd15ce 100644
--- a/certificate.cpp
+++ b/certificate.cpp
@@ -42,8 +42,8 @@
const UnitsToRestart& unit,
const CertInstallPath& installPath,
const CertUploadPath& uploadPath) :
- bus(bus),
- objectPath(objPath), certType(type), unitToRestart(unit),
+ CertIfaces(bus, objPath.c_str(), true),
+ bus(bus), objectPath(objPath), certType(type), unitToRestart(unit),
certInstallPath(installPath)
{
auto installHelper = [this](const auto& filePath) {
@@ -57,6 +57,7 @@
typeFuncMap[CLIENT] = installHelper;
typeFuncMap[AUTHORITY] = [](auto filePath) {};
install(uploadPath);
+ this->emit_object_added();
}
Certificate::~Certificate()