mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-01 03:19:13 +00:00
Issue #4170 - Client-side alias selection based on SSLEngine.
Cosmetics. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
0fc5ec9d18
commit
b48873f33b
@ -58,21 +58,21 @@ public class ForwardProxyServerTest
|
||||
return Stream.of(null, newServerSslContextFactory());
|
||||
}
|
||||
|
||||
private Server server;
|
||||
private ServerConnector serverConnector;
|
||||
private SslContextFactory serverSslContextFactory;
|
||||
private Server proxy;
|
||||
private ServerConnector proxyConnector;
|
||||
|
||||
private static SslContextFactory.Server newServerSslContextFactory()
|
||||
{
|
||||
SslContextFactory.Server proxyTLS = new SslContextFactory.Server();
|
||||
SslContextFactory.Server serverTLS = new SslContextFactory.Server();
|
||||
String keyStorePath = MavenTestingUtils.getTestResourceFile("server_keystore.p12").getAbsolutePath();
|
||||
proxyTLS.setKeyStorePath(keyStorePath);
|
||||
proxyTLS.setKeyStorePassword("storepwd");
|
||||
return proxyTLS;
|
||||
serverTLS.setKeyStorePath(keyStorePath);
|
||||
serverTLS.setKeyStorePassword("storepwd");
|
||||
return serverTLS;
|
||||
}
|
||||
|
||||
private Server server;
|
||||
private ServerConnector serverConnector;
|
||||
private SslContextFactory.Server serverSslContextFactory;
|
||||
private Server proxy;
|
||||
private ServerConnector proxyConnector;
|
||||
|
||||
protected void startServer(SslContextFactory.Server serverTLS, ConnectionFactory connectionFactory) throws Exception
|
||||
{
|
||||
serverSslContextFactory = serverTLS;
|
||||
@ -188,7 +188,7 @@ public class ForwardProxyServerTest
|
||||
});
|
||||
startProxy();
|
||||
|
||||
SslContextFactory clientTLS = new SslContextFactory.Client(true);
|
||||
SslContextFactory.Client clientTLS = new SslContextFactory.Client(true);
|
||||
HttpClient httpClient = new HttpClient(clientTLS);
|
||||
httpClient.getProxyConfiguration().getProxies().add(newHttpProxy());
|
||||
httpClient.start();
|
||||
|
Loading…
x
Reference in New Issue
Block a user