aboutsummaryrefslogtreecommitdiffstats
path: root/certService/src/main/java/org/onap/aaf/certservice/cmpv2client/api
diff options
context:
space:
mode:
authorEmmettCox <emmett.cox@est.tech>2020-02-24 13:55:34 +0000
committerEmmettCox <emmett.cox@est.tech>2020-02-27 10:28:47 +0000
commitacab8f589066b4b66a40a851ad54d652aaab66f3 (patch)
tree5864a7ac77e08293fa6f57ee41a2dcbc83a377e0 /certService/src/main/java/org/onap/aaf/certservice/cmpv2client/api
parent2edef3c2aaafba49439e20aa13eb647c67c781d5 (diff)
Verifying certchain and returning certchain and TrustStore
Issue-ID: AAF-1037 Signed-off-by: EmmettCox <emmett.cox@est.tech> Change-Id: Iaab754ff5f568b2f2e1aeac8dbed279e20b09b3b
Diffstat (limited to 'certService/src/main/java/org/onap/aaf/certservice/cmpv2client/api')
-rw-r--r--certService/src/main/java/org/onap/aaf/certservice/cmpv2client/api/CmpClient.java20
1 files changed, 11 insertions, 9 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 feee3eed..150f15d5 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
@@ -1,6 +1,7 @@
-/*
- * Copyright (C) 2020 Ericsson Software Technology AB. All rights reserved.
- *
+/*-
+ * ============LICENSE_START=======================================================
+ * Copyright (C) 2020 Nordix Foundation.
+ * ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -11,17 +12,18 @@
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
- * limitations under the License
+ * limitations under the License.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ * ============LICENSE_END=========================================================
*/
package org.onap.aaf.certservice.cmpv2client.api;
-import java.io.IOException;
import java.security.cert.X509Certificate;
import java.util.Date;
-import org.apache.http.impl.client.CloseableHttpClient;
+import java.util.List;
import org.onap.aaf.certservice.cmpv2client.exceptions.CmpClientException;
-import org.onap.aaf.certservice.cmpv2client.exceptions.PkiErrorException;
import org.onap.aaf.certservice.cmpv2client.external.CSRMeta;
/**
@@ -50,7 +52,7 @@ public interface CmpClient {
* @return {@link X509Certificate} The newly created Certificate.
* @throws CmpClientException if client error occurs.
*/
- X509Certificate createCertificate(
+ List<List<X509Certificate>> createCertificate(
String caName,
String profile,
CSRMeta csrMeta,
@@ -74,7 +76,7 @@ public interface CmpClient {
* @return {@link X509Certificate} The newly created Certificate.
* @throws CmpClientException if client error occurs.
*/
- X509Certificate createCertificate(
+ List<List<X509Certificate>> createCertificate(
String caName,
String profile,
CSRMeta csrMeta,