Skip to content

Commit

Permalink
Stop using deprecated Jetty SslContextFactory constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
jbonofre committed Jun 2, 2019
1 parent 30df544 commit 1ec39c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public void testSimpleWebContextPathAvailability() throws Exception {
@Ignore("org.eclipse.jetty.io.NegotiatingClientConnectionFactory not found by org.eclipse.jetty.alpn.client")
public void testWebContextPath() throws Exception {
HTTP2Client client = new HTTP2Client();
SslContextFactory sslContextFactory = new SslContextFactory(true);
SslContextFactory sslContextFactory = new SslContextFactory.Client(true);
client.addBean(sslContextFactory);
client.start();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ public ServerConnector createSecureConnector(Server server, String name, int por
Boolean checkForwaredHeaders) {

// SSL Context Factory for HTTPS and SPDY
SslContextFactory sslContextFactory = new SslContextFactory();
SslContextFactory sslContextFactory = new SslContextFactory.Server();
sslContextFactory.setKeyStorePath(sslKeystore);
sslContextFactory.setKeyStorePassword(sslKeystorePassword);
sslContextFactory.setKeyManagerPassword(sslKeyPassword);
Expand Down

0 comments on commit 1ec39c0

Please sign in to comment.