Fixed netty & checkstyle failures
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / core / SslKeyStore.java
index b5fdab1a84c1862d72b2da62847581ffaf0000b1..e4efea9f765dcfdcfc58cc46537148cba747b863 100644 (file)
@@ -24,7 +24,11 @@ import org.slf4j.LoggerFactory;
  */
 public final class SslKeyStore {
 
-    private static final Logger LOGGER = LoggerFactory.getLogger(SslKeyStore.class);
+    private static final Logger LOG = LoggerFactory.getLogger(SslKeyStore.class);
+
+    private SslKeyStore() {
+        throw new UnsupportedOperationException("Utility class shouldn't be instantiated");
+    }
 
     /**
      * InputStream instance of key - key location is on classpath
@@ -44,14 +48,14 @@ public final class SslKeyStore {
             }
             break;
         case PATH:
-            LOGGER.debug("Current dir using System:"
+            LOG.debug("Current dir using System:"
                     + System.getProperty("user.dir"));
             File keystorefile = new File(filename);
             try {
                 in = new FileInputStream(keystorefile);
             } catch (FileNotFoundException e) {
                 throw new IllegalStateException("KeyStore file not found: "
-                        + filename);
+                        + filename,e);
             }
             break;
         default:
@@ -59,18 +63,4 @@ public final class SslKeyStore {
         }
         return in;
     }
-
-    /**
-     * @return certificate password as char[]
-     */
-    public static char[] getCertificatePassword() {
-        return "opendaylight".toCharArray();
-    }
-
-    /**
-     * @return KeyStore password as char[]
-     */
-    public static char[] getKeyStorePassword() {
-        return "opendaylight".toCharArray();
-    }
 }