Add Certification merge logic
[oom/platform/cert-service.git] / trustStoreMerger / src / main / java / org / onap / oom / truststoremerger / certification / file / provider / CertificateController.java
  * ============LICENSE_END=========================================================
  */
 
-package org.onap.oom.truststoremerger.certification.file;
+package org.onap.oom.truststoremerger.certification.file.provider;
 
-import java.io.File;
-import java.security.cert.Certificate;
 import java.util.List;
+import org.onap.oom.truststoremerger.api.ExitableException;
+import org.onap.oom.truststoremerger.certification.file.provider.entry.CertificateWithAlias;
 
-public abstract class TruststoreFile {
-    private File truststoreFile;
+public interface CertificateController {
 
-    TruststoreFile(File truststoreFile) {
-        this.truststoreFile = truststoreFile;
-    }
+    List<CertificateWithAlias> getNotEmptyCertificateList() throws ExitableException;
 
-    public abstract List<Certificate> getCertificates();
+    void addCertificates(List<CertificateWithAlias> certificates) throws ExitableException;
 
-    public File getTruststoreFile() {
-        return truststoreFile;
-    };
+    void saveFile() throws ExitableException;
 }