From 17ca0eee124f6aed0837a938b3bfd4ca60fe5d0e Mon Sep 17 00:00:00 2001 From: Emina Ahmetovic Date: Mon, 2 Nov 2020 16:18:55 +0100 Subject: Code cleanup --- .../src/main/java/at/gv/egiz/pdfas/web/sl20/JsonSecurityUtils.java | 4 ---- 1 file changed, 4 deletions(-) (limited to 'pdf-as-web/src/main/java/at/gv/egiz/pdfas') diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/sl20/JsonSecurityUtils.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/sl20/JsonSecurityUtils.java index 4a0ecf47..bf37b290 100644 --- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/sl20/JsonSecurityUtils.java +++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/sl20/JsonSecurityUtils.java @@ -116,7 +116,6 @@ public class JsonSecurityUtils implements IJOSETools{ trustedCerts.add((X509Certificate) cert); else logger.info("Can not process entry: " + el + ". Reason: "); - } } @@ -124,13 +123,11 @@ public class JsonSecurityUtils implements IJOSETools{ if (signPrivKey == null || !(signPrivKey instanceof PrivateKey)) { logger.info("Can NOT open privateKey for SL2.0 signing. KeyStore="); throw new SL20Exception("sl20.03"); - } if (signCertChain == null || signCertChain.length == 0) { logger.info("NO certificate for SL2.0 signing. KeyStore="); throw new SL20Exception("sl20.03"); - } isInitialized = true; @@ -291,7 +288,6 @@ public class JsonSecurityUtils implements IJOSETools{ } else { logger.info("Signed SL2.0 response contains NO signature certificate or NO certificate fingerprint"); throw new SLCommandoParserException(); - } //set key -- cgit v1.2.3