我想为码头服务器设置SSL(org.eclipse.jetty.server.ssl.SslSocketConnector),并且maven项目正在使用码头版本9.3.20.v20170531。
经过研究后,我发现码头服务器8.1.18.v20150929具有“ org.eclipse.jetty.server.ssl.SslSocketConnector”类。
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
<version>8.1.18.v20150929</version>
</dependency>
但是码头服务器9.3.20.v20170531没有该类。
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
<version>9.3.20.v20170531</version>
</dependency>
我不明白为什么jetty-server 9.3.20.v20170531缺少该类,它是否已移至其他artifactId?
是否可以使用jetty服务器9.3.20.v20170531来实现“ org.eclipse.jetty.server.ssl.SslSocketConnector”以在Jetty服务器上设置SSL?
更新:
对于使用jetty.xml定义连接器,如何将jetty.xml内的连接器迁移到上述“新方法”?
<Call name="addConnector">
<Arg>
<New class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
<Arg>
<New class="org.eclipse.jetty.http.ssl.SslContextFactory">
<Set name="keyStore">/etc/keystore.jks</Set>
<Set name="keyStorePassword">Password</Set>
<Set name="keyManagerPassword">Password</Set>
<Set name="trustStore">/etc/truststore.jks</Set>
<Set name="trustStorePassword">Password</Set>
</New>
</Arg>
<Set name="host">example.com</Set>
<Set name="port">12345</Set>
</New>
</Arg>
</Call>
谢谢。
似乎码头服务器已被清理干净,这些连接器不再使用。也许您可以看看以下帖子,以找到有关如何将代码迁移到新工作方式的方法:https : //www.eclipse.org/lists/jetty-dev/msg01952.html
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句