summaryrefslogtreecommitdiffstats
path: root/certService/src/main/java/org/onap/aaf/certservice/cmpv2client/api/CmpClient.java
diff options
context:
space:
mode:
authorBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>2020-03-25 14:08:49 +0100
committerZebek Bogumil <bogumil.zebek@nokia.com>2020-03-27 11:47:14 +0100
commita999a364ac1d9557decfd3b0157cbe46181006f3 (patch)
tree99596cdb2981f53324bd4a526961a7c25460a749 /certService/src/main/java/org/onap/aaf/certservice/cmpv2client/api/CmpClient.java
parent9600d1361dd6e662248fe0704d1436ae56d446a7 (diff)
Refactor CmpResponseHelper to support intermediate certificate
Issue-ID: AAF-1107 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: Ia2e2f9ba1fbcf0482121ffb5f451c408774481ba
Diffstat (limited to 'certService/src/main/java/org/onap/aaf/certservice/cmpv2client/api/CmpClient.java')
-rw-r--r--certService/src/main/java/org/onap/aaf/certservice/cmpv2client/api/CmpClient.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/certService/src/main/java/org/onap/aaf/certservice/cmpv2client/api/CmpClient.java b/certService/src/main/java/org/onap/aaf/certservice/cmpv2client/api/CmpClient.java
index 6ff1bf68..cccb744d 100644
--- a/certService/src/main/java/org/onap/aaf/certservice/cmpv2client/api/CmpClient.java
+++ b/certService/src/main/java/org/onap/aaf/certservice/cmpv2client/api/CmpClient.java
@@ -20,13 +20,12 @@
package org.onap.aaf.certservice.cmpv2client.api;
-import java.security.cert.X509Certificate;
import java.util.Date;
-import java.util.List;
import org.onap.aaf.certservice.certification.configuration.model.Cmpv2Server;
import org.onap.aaf.certservice.certification.model.CsrModel;
import org.onap.aaf.certservice.cmpv2client.exceptions.CmpClientException;
+import org.onap.aaf.certservice.cmpv2client.model.Cmpv2CertificationModel;
/**
* This class represent CmpV2Client Interface for obtaining X.509 Digital Certificates in a Public
@@ -47,10 +46,10 @@ public interface CmpClient {
* before this date.
* @param notAfter An optional validity to set in the created certificate, Certificate not valid
* after this date.
- * @return {@link X509Certificate} The newly created Certificate.
+ * @return model for certification containing certificate chain and trusted certificates
* @throws CmpClientException if client error occurs.
*/
- List<List<X509Certificate>> createCertificate(
+ Cmpv2CertificationModel createCertificate(
CsrModel csrModel,
Cmpv2Server server,
Date notBefore,
@@ -65,10 +64,10 @@ public interface CmpClient {
*
* @param csrModel Certificate Signing Request Model. Must not be {@code null}.
* @param server CMPv2 server. Must not be {@code null}.
- * @return {@link X509Certificate} The newly created Certificate.
+ * @return model for certification containing certificate chain and trusted certificates
* @throws CmpClientException if client error occurs.
*/
- List<List<X509Certificate>> createCertificate(
+ Cmpv2CertificationModel createCertificate(
CsrModel csrModel,
Cmpv2Server server)
throws CmpClientException;