aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogumil Zebek <bogumil.zebek@nokia.com>2020-04-01 12:46:26 +0000
committerGerrit Code Review <gerrit@onap.org>2020-04-01 12:46:26 +0000
commit8f12ccef21cfd6c4849753af970e02bee3ab0c4b (patch)
tree8d5b2948a967217754c91d0d45e6dd5450a51bdc
parent9137fcaf5da7f2de5d046ad9197f754a741dfbde (diff)
parentdc161517f28e403682fd4b5cb2878f0deca769e8 (diff)
Merge "Fix sonar issue CertificationController"
-rw-r--r--certService/src/main/java/org/onap/aaf/certservice/api/CertificationController.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/certService/src/main/java/org/onap/aaf/certservice/api/CertificationController.java b/certService/src/main/java/org/onap/aaf/certservice/api/CertificationController.java
index 74f64061..bf51e49e 100644
--- a/certService/src/main/java/org/onap/aaf/certservice/api/CertificationController.java
+++ b/certService/src/main/java/org/onap/aaf/certservice/api/CertificationController.java
@@ -28,7 +28,6 @@ import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.onap.aaf.certservice.certification.CertificationModelFactory;
-import org.onap.aaf.certservice.certification.exception.Cmpv2ClientAdapterException;
import org.onap.aaf.certservice.certification.exception.DecryptionException;
import org.onap.aaf.certservice.certification.exception.ErrorResponseModel;
import org.onap.aaf.certservice.certification.model.CertificationModel;
@@ -86,7 +85,7 @@ public class CertificationController {
@RequestHeader("CSR") String encodedCsr,
@Parameter(description = "Private key in form of PEM object encoded in Base64 (with header and footer).")
@RequestHeader("PK") String encodedPrivateKey
- ) throws DecryptionException, CmpClientException, Cmpv2ClientAdapterException {
+ ) throws DecryptionException, CmpClientException {
caName = caName.replaceAll("[\n|\r|\t]", "_");
LOGGER.info("Received certificate signing request for CA named: {}", caName);
CertificationModel certificationModel = certificationModelFactory