diff options
author | edyta <edyta.krukowska@nokia.com> | 2020-03-31 15:08:50 +0200 |
---|---|---|
committer | edyta <edyta.krukowska@nokia.com> | 2020-03-31 15:08:50 +0200 |
commit | dc161517f28e403682fd4b5cb2878f0deca769e8 (patch) | |
tree | 811836abab50146ee938f4e13634c904eec377e2 /certService/src | |
parent | 26d5436326c8139a5731fd913a8009ca5569be21 (diff) |
Fix sonar issue CertificationController
Issue-ID: AAF-1118
Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com>
Change-Id: Ib902b1d44abb1cf0741a10f73742014b5185d7b8
Diffstat (limited to 'certService/src')
-rw-r--r-- | certService/src/main/java/org/onap/aaf/certservice/api/CertificationController.java | 3 |
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 |