diff options
Diffstat (limited to 'certService/src/main/java/org/onap')
-rw-r--r-- | certService/src/main/java/org/onap/aaf/certservice/certification/CsrModelFactory.java | 6 | ||||
-rw-r--r-- | certService/src/main/java/org/onap/aaf/certservice/certification/PemObjectFactory.java | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/certService/src/main/java/org/onap/aaf/certservice/certification/CsrModelFactory.java b/certService/src/main/java/org/onap/aaf/certservice/certification/CsrModelFactory.java index 80858f4d..98daa6eb 100644 --- a/certService/src/main/java/org/onap/aaf/certservice/certification/CsrModelFactory.java +++ b/certService/src/main/java/org/onap/aaf/certservice/certification/CsrModelFactory.java @@ -39,14 +39,14 @@ public class CsrModelFactory { private final PemObjectFactory pemObjectFactory = new PemObjectFactory(); public CsrModel createCsrModel(StringBase64 csr, StringBase64 privateKey) throws CsrDecryptionException { - LOGGER.debug("Decoded CSR: \n{}", csr.asString()); + LOGGER.debug("Decoded CSR: \n{}", csr); try { - PemObject pemObject = pemObjectFactory.createPmObject(csr.asString()); + PemObject pemObject = pemObjectFactory.createPemObject(csr.asString()); PKCS10CertificationRequest decodedCsr = new PKCS10CertificationRequest( pemObject.getContent() ); - PemObject decodedPrivateKey = pemObjectFactory.createPmObject(privateKey.asString()); + PemObject decodedPrivateKey = pemObjectFactory.createPemObject(privateKey.asString()); return new CsrModel(decodedCsr, decodedPrivateKey); } catch (IOException e) { throw new CsrDecryptionException("Incorrect CSR, decryption failed", e); diff --git a/certService/src/main/java/org/onap/aaf/certservice/certification/PemObjectFactory.java b/certService/src/main/java/org/onap/aaf/certservice/certification/PemObjectFactory.java index e3339cc4..08ffc56d 100644 --- a/certService/src/main/java/org/onap/aaf/certservice/certification/PemObjectFactory.java +++ b/certService/src/main/java/org/onap/aaf/certservice/certification/PemObjectFactory.java @@ -31,7 +31,7 @@ import org.onap.aaf.certservice.certification.exceptions.CsrDecryptionException; public class PemObjectFactory { - public PemObject createPmObject(String pem) throws CsrDecryptionException { + public PemObject createPemObject(String pem) throws CsrDecryptionException { try (StringReader stringReader = new StringReader(pem); PemReader pemReader = new PemReader(stringReader)) { |