AppServer: Stop using deprecated SslContextFactory constructor

Use SslContextFactory.Client instead, as suggested in the deprecation
javadoc.

Change-Id: I746c953d3ad549c23d0e43eb4a18fc587e924f93
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
This commit is contained in:
David Pursehouse 2019-10-17 10:42:28 +09:00
parent 98cdca9b5a
commit 8e356fc45e
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ public AppServer(int port, int sslPort) {
}
private SslContextFactory createTestSslContextFactory(String hostName) {
SslContextFactory factory = new SslContextFactory(true);
SslContextFactory.Client factory = new SslContextFactory.Client(true);
String dName = "CN=,OU=,O=,ST=,L=,C=";