diff options
author | Robert Gemmell <robbie@apache.org> | 2013-04-12 16:16:09 +0000 |
---|---|---|
committer | Robert Gemmell <robbie@apache.org> | 2013-04-12 16:16:09 +0000 |
commit | f496f0ebf1895ad91a2c5cd7212f4f35723944af (patch) | |
tree | 98b1f38ee1e255e9c3323482e23da25f2e159164 /java/common/src | |
parent | 8b47505e4e783167cd666b7e6f8aca547c9a96e1 (diff) | |
download | qpid-python-f496f0ebf1895ad91a2c5cd7212f4f35723944af.tar.gz |
QPID-4739: complete support for defining multiple key/trust stores and assigning them on a port-specific basis
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1467334 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/common/src')
-rw-r--r-- | java/common/src/main/java/org/apache/qpid/ssl/SSLContextFactory.java | 2 | ||||
-rw-r--r-- | java/common/src/test/java/org/apache/qpid/test/utils/TestSSLConstants.java | 37 |
2 files changed, 37 insertions, 2 deletions
diff --git a/java/common/src/main/java/org/apache/qpid/ssl/SSLContextFactory.java b/java/common/src/main/java/org/apache/qpid/ssl/SSLContextFactory.java index 01381ad23f..158006f072 100644 --- a/java/common/src/main/java/org/apache/qpid/ssl/SSLContextFactory.java +++ b/java/common/src/main/java/org/apache/qpid/ssl/SSLContextFactory.java @@ -31,7 +31,6 @@ import javax.net.ssl.SSLContext; import javax.net.ssl.TrustManager; import javax.net.ssl.TrustManagerFactory; import javax.net.ssl.X509TrustManager; -import java.security.cert.X509Certificate; import java.io.IOException; import java.security.GeneralSecurityException; @@ -39,7 +38,6 @@ import java.security.KeyStore; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; -import java.util.List; /** * Factory used to create SSLContexts. SSL needs to be configured diff --git a/java/common/src/test/java/org/apache/qpid/test/utils/TestSSLConstants.java b/java/common/src/test/java/org/apache/qpid/test/utils/TestSSLConstants.java new file mode 100644 index 0000000000..c48f164d98 --- /dev/null +++ b/java/common/src/test/java/org/apache/qpid/test/utils/TestSSLConstants.java @@ -0,0 +1,37 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.qpid.test.utils; + +public interface TestSSLConstants +{ + String KEYSTORE = "test-profiles/test_resources/ssl/java_client_keystore.jks"; + String UNTRUSTED_KEYSTORE = "test-profiles/test_resources/ssl/java_client_untrusted_keystore.jks"; + String KEYSTORE_PASSWORD = "password"; + String TRUSTSTORE = "test-profiles/test_resources/ssl/java_client_truststore.jks"; + String TRUSTSTORE_PASSWORD = "password"; + + String BROKER_KEYSTORE = "test-profiles/test_resources/ssl/java_broker_keystore.jks"; + String BROKER_KEYSTORE_PASSWORD = "password"; + + String BROKER_PEERSTORE = "test-profiles/test_resources/ssl/java_broker_peerstore.jks"; + String BROKER_PEERSTORE_PASSWORD = "password"; + + String BROKER_TRUSTSTORE = "test-profiles/test_resources/ssl/java_broker_truststore.jks"; + String BROKER_TRUSTSTORE_PASSWORD = "password"; +} |