public class SecureWebServer extends GenericWebServer
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_PORT
Default HTTPS port
|
private java.lang.String |
kePasswd
Key entry password.
|
private java.security.KeyStore |
keyStore
In-memory key store.
|
private javax.net.ssl.KeyManager[] |
km
Custom key manager.
|
private java.lang.String |
ksFileName
Key store file name.
|
private java.lang.String |
ksPasswd
Key store password.
|
LOGCONNECTION_RESTORED_MESSAGE, CONNECTION_TIMEOUT, DELAY_BETWEEN_CONNECT_TRIES, DELAY_BETWEEN_PING_TRIES, ENABLE_DEBUG_LOGGING, INFINITE_TIMEOUT, MAX_BINARY_MESSAGE_SIZE, MAX_LOST_PINGS, MAX_TEXT_MESSAGE_SIZE, MAX_WEB_SOCKET_IDLE_TIMEOUT, OUTPUT_AGGREGATION_SIZE, OUTPUT_BUFFER_SIZE, PING_PONG_INTERVAL, REQUEST_HEADER_SIZE, RESPONSE_HEADER_SIZE, SERVER_UNAVAILABLE_MESSAGE, TRY_TO_CONNECT_MESSAGE, WATCH_DOG_TIMEOUT| Constructor and Description |
|---|
SecureWebServer(java.lang.String ksFileName,
java.lang.String ksPasswd,
java.lang.String kePasswd)
Construct an instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.jetty.util.ssl.SslContextFactory |
getSslContextFactory()
Construct a SSL Context Factory for HTTPS.
|
addHandler, addHandler, addWebSocketHandler, addWebSocketHandler, getContextPath, getHost, getHttpConfiguration, getPort, getServer, getWarFile, getWebAppConnectors, initializeWebApp, isRunning, join, removeHandler, setBootstrapConfig, setContextPath, setKeyStore, shutdown, startup, startup, startupprotected static int DEFAULT_PORT
private java.lang.String ksFileName
private java.lang.String ksPasswd
private java.lang.String kePasswd
private java.security.KeyStore keyStore
private javax.net.ssl.KeyManager[] km
public SecureWebServer(java.lang.String ksFileName,
java.lang.String ksPasswd,
java.lang.String kePasswd)
ksFileName - Key store file name.ksPasswd - Key store password or null if not needed.kePasswd - Key entry password or null if not needed.protected org.eclipse.jetty.util.ssl.SslContextFactory getSslContextFactory()
throws java.lang.Exception
This method must be overridden if an SSL connector is required.
getSslContextFactory in class GenericWebServerSslContextFactory instance.java.lang.Exception - If any error conditions occur.