*/
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
}
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:
}
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();
- }
}