Jetty SslConnector's deprecated methods

后端 未结 2 1555
名媛妹妹
名媛妹妹 2021-01-13 15:17

SslConnector.java interface has been changed in the newest Jetty 7.3.1.v20110307.

Almost all off the methods have been marked as deprecated without mentioni

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-13 15:40

    Okay, digging out from the subversion changelog for the corresponding commits (crazy) it came out that SslContextFactory should be used.

    Example:

    final SslContextFactory sslContextFactory = new SslContextFactory(sKeyStore);
    sslContextFactory.setKeyStorePassword(sPassword);
    
    final SslSocketConnector conn = new SslSocketConnector(sslContextFactory);
    conn.setReuseAddress(true);
    // ...
    

提交回复
热议问题