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.
|
LOG
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, getPort, isRunning, join, setBootstrapConfig, setContextPath, setKeyStore, shutdown, startup, startup
protected 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 GenericWebServer
SslContextFactory
instance.java.lang.Exception
- If any error conditions occur.