[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] Deprecated SSL methods on SslSelectChannelConnector
|
In addition to what Jesse said, the documentation for the SSL connector
itself is now up to date so you can review that as well.
http://wiki.eclipse.org/Jetty/Reference/SSL_Connectors
On 6/24/11 8:40 AM, Jesse McConnell wrote:
Most of those methods now exist on the SslContextFactory with a setter
on the connector taking in that factory.
read this blurb of xml as if it was java and you'll see.
<Call name="addConnector">
<Arg>
<New class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
<Arg>
<New class="org.eclipse.jetty.http.ssl.SslContextFactory">
<Set name="port">8443</Set>
<Set name="keyStore"><SystemProperty name="jetty.home"
default="." />/etc/keystore</Set>
<Set
name="keyStorePassword">OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4</Set>
<Set name="keyManagerPassword">OBF:1u2u1wml1z7s1z7a1wnl1u2g</Set>
<Set name="trustStore"><SystemProperty name="jetty.home"
default="." />/etc/keystore</Set>
<Set
name="trustStorePassword">OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4</Set>
</New>
</Arg
<Set name="maxIdleTime">30000</Set>
</New>
</Arg>
</Call>
Michael, would you update the embedded example real quick?
cheers,
jesse
--
jesse mcconnell
jesse.mcconnell@xxxxxxxxx
On Thu, Jun 23, 2011 at 23:47, James Whetstone
<james.whetstone.x@xxxxxxxxx> wrote:
The tutorials show the following code
at http://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty:
public class ManyConnectors
{
public static void main(String[] args) throws Exception
{
Server server = new Server();
SelectChannelConnector connector0 = new SelectChannelConnector();
connector0.setPort(8080);
connector0.setMaxIdleTime(30000);
connector0.setRequestHeaderSize(8192);
SelectChannelConnector connector1 = new SelectChannelConnector();
connector1.setHost("127.0.0.1");
connector1.setPort(8888);
connector1.setThreadPool(new QueuedThreadPool(20));
connector1.setName("admin");
SslSelectChannelConnector ssl_connector = new
SslSelectChannelConnector();
String jetty_home =
System.getProperty("jetty.home","../jetty-distribution/target/distribution");
System.setProperty("jetty.home",jetty_home);
ssl_connector.setPort(8443);
ssl_connector.setKeystore(jetty_home + "/etc/keystore");
ssl_connector.setPassword("OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4");
ssl_connector.setKeyPassword("OBF:1u2u1wml1z7s1z7a1wnl1u2g");
server.addConnector(ssl_connector);
server.setConnectors(new Connector[]{ connector0, connector1,
ssl_connector });
server.setHandler(new HelloHandler());
server.start();
server.join();
}
}
But the SslSelctChannelConnector has several methods that are Deprecated
according to the documentation. The problem is, I'm unclear on what
methods/objects should replace these deprecated methods.
For example, "setKeystore", "setPassword" and "setKeyPassword" are all
marked as deprecated.
Can anyone help me out with this?
Sincerely,
James
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users
--
Chad La Joie
http://itumi.biz
trusted identities, delivered