건물 :
Server server = new Server();
// Encrypt the connection using a valid certificate/keystore
SslContextFactory sslContextFactory = new SslContextFactory("path/keystore.jks");
sslContextFactory.setKeyStorePassword("password");
// Create a new SocketConnector at port 443, which is the default port for
// HTTPS web pages (no port number needs to be specified in the browser).
SslSocketConnector sslConnector = new SslSocketConnector(sslContextFactory);
sslConnector.setPort(443);
// Add the SocketConnector to the server
server.setConnectors(new Connector[] {sslConnector});
그리고 지금 SslContextFactory 자체가되지 않습니다는 ... 그들은 확실히 부두에서 API를 많이 변경 좋아합니다. – Trejkaz
@Trejkaz 그것은 당신이 가져올'SslContextFactory'에 달려 있습니다. –