From dbbdce0960fcd1de0e096f26170ffede385ba489 Mon Sep 17 00:00:00 2001 From: edyta Date: Mon, 20 Apr 2020 07:38:45 +0200 Subject: Fix sonar issue SslSupportLevel Issue-ID: INT-1517 Signed-off-by: Edyta Krukowska Change-Id: Ib871854a2becfbef7cf568f09f20b61b72361547 --- .../pnfsimulator/simulator/client/utils/ssl/SslSupportLevel.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'pnfsimulator/src/main') diff --git a/pnfsimulator/src/main/java/org/onap/pnfsimulator/simulator/client/utils/ssl/SslSupportLevel.java b/pnfsimulator/src/main/java/org/onap/pnfsimulator/simulator/client/utils/ssl/SslSupportLevel.java index 264a7d1..c05f4c6 100644 --- a/pnfsimulator/src/main/java/org/onap/pnfsimulator/simulator/client/utils/ssl/SslSupportLevel.java +++ b/pnfsimulator/src/main/java/org/onap/pnfsimulator/simulator/client/utils/ssl/SslSupportLevel.java @@ -40,10 +40,7 @@ import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; import java.security.GeneralSecurityException; -import java.security.KeyManagementException; import java.security.KeyStore; -import java.security.KeyStoreException; -import java.security.NoSuchAlgorithmException; import java.util.Optional; public enum SslSupportLevel { @@ -71,7 +68,7 @@ public enum SslSupportLevel { .build(); } catch (GeneralSecurityException e) { - LOGGER.error("Could not initialize client due to SSL exception: {}. Default client without SSL support will be used instead.\nCause: {}", e.getMessage(), e.getCause()); + LOGGER.error("Could not initialize client due to SSL exception: {}. Default client without SSL support will be used instead.\nCause: {}", e.getMessage(), e.getCause().toString()); client = NONE.getClient(requestConfig, sslAuthenticationHelper); } return client; -- cgit 1.2.3-korg