1
package org.jboss.test.remoting.transport.http.ssl.clientaddress;
5
import org.jboss.remoting.security.SSLSocketBuilder;
6
import org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker;
7
import org.jboss.test.remoting.clientaddress.ClientAddressTestParent;
9
public class HttpsClientAddressTestCase extends ClientAddressTestParent
11
protected String getTransport()
16
protected void addExtraServerConfig(Map config)
18
config.put(SSLSocketBuilder.REMOTING_KEY_STORE_TYPE, "JKS");
19
String keyStoreFilePath = this.getClass().getResource("../.keystore").getFile();
20
config.put(SSLSocketBuilder.REMOTING_KEY_STORE_FILE_PATH, keyStoreFilePath);
21
config.put(SSLSocketBuilder.REMOTING_KEY_STORE_PASSWORD, "unit-tests-server");
24
protected void addExtraClientConfig(Map config)
26
config.put(SSLSocketBuilder.REMOTING_TRUST_STORE_TYPE, "JKS");
27
String trustStoreFilePath = this.getClass().getResource("../.truststore").getFile();
28
config.put(SSLSocketBuilder.REMOTING_TRUST_STORE_FILE_PATH, trustStoreFilePath);
29
config.put(SSLSocketBuilder.REMOTING_TRUST_STORE_PASSWORD, "unit-tests-client");
30
config.put(HTTPSClientInvoker.IGNORE_HTTPS_HOST, "true");
33
protected void addExtraCallbackConfig(Map config)
35
addExtraClientConfig(config);
36
config.put(SSLSocketBuilder.REMOTING_SERVER_SOCKET_USE_CLIENT_MODE, "true");