summaryrefslogtreecommitdiff
path: root/qpid/java
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/java')
-rw-r--r--qpid/java/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/HttpManagement.java22
1 files changed, 0 insertions, 22 deletions
diff --git a/qpid/java/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/HttpManagement.java b/qpid/java/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/HttpManagement.java
index d41b505d23..e0135d26aa 100644
--- a/qpid/java/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/HttpManagement.java
+++ b/qpid/java/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/HttpManagement.java
@@ -244,7 +244,6 @@ public class HttpManagement extends AbstractPluginAdapter implements HttpManagem
}
String keyStorePath = (String)keyStore.getAttribute(KeyStore.PATH);
String keyStorePassword = keyStore.getPassword();
- validateKeystoreParameters(keyStorePath, keyStorePassword);
SslContextFactory factory = new SslContextFactory();
factory.setKeyStorePath(keyStorePath);
@@ -328,27 +327,6 @@ public class HttpManagement extends AbstractPluginAdapter implements HttpManagem
root.addServlet(new ServletHolder(new RestServlet(hierarchy)), "/rest/" + name + "/*");
}
- private void validateKeystoreParameters(String keyStorePath, String password)
- {
- if (keyStorePath == null)
- {
- throw new RuntimeException("SSL keystore path not defined, unable to start HTTPS connector");
- }
- if (password == null)
- {
- throw new RuntimeException("SSL keystore password not defined, unable to start HTTPS connector");
- }
- File ksf = new File(keyStorePath);
- if (!ksf.exists())
- {
- throw new RuntimeException("Cannot find SSL keystore file for HTTPS management: " + ksf);
- }
- if (!ksf.canRead())
- {
- throw new RuntimeException("Cannot read SSL keystore file for HTTPS management: " + ksf + ". Check permissions.");
- }
- }
-
private void logOperationalListenMessages(Server server)
{
Connector[] connectors = server.getConnectors();