SimpleSocketServer that supports SSL.
<b>Usage:</b> java ch.qos.logback.classic.net.ssl.SimpleSSLSocketServer port configFile
where port is a port number where the server listens and
configFile is an XML configuration file fed to
JoranConfigurator.
When running the SimpleSSLServerFactory as shown above, it is necessary to
configure JSSE system properties using -Dname=value on the
command-line when starting the server. In particular, you will probably
want/need to configure the following system properties:
See the Customizing the JSSE in the JSSE Reference Guide for details on how to set these system properties.
| Modifier and Type | Field and Description |
|---|---|
| private final ServerSocketFactory |
| Access | Constructor and Description |
|---|---|
| public | SimpleSSLSocketServer(LoggerContext
logger context for received events lc, int port on which the server is to listen port)Creates a new server using the default SSL context. |
| public | SimpleSSLSocketServer(LoggerContext
logger context for received events lc, int port on which the server is to listen port, SSLContext custom SSL context sslContext)Creates a new server using a custom SSL context. |
| Modifier and Type | Method and Description |
|---|---|
| protected ServerSocketFactory | getServerSocketFactory()
Overrides ch. ServerSocketFactory.
|
| public static void |
| socketFactory | back to summary |
|---|---|
| private final ServerSocketFactory socketFactory | |
| SimpleSSLSocketServer | back to summary |
|---|---|
| public SimpleSSLSocketServer(LoggerContext lc, int port) throws NoSuchAlgorithmException Creates a new server using the default SSL context.
| |
| SimpleSSLSocketServer | back to summary |
|---|---|
| public SimpleSSLSocketServer(LoggerContext lc, int port, SSLContext sslContext) Creates a new server using a custom SSL context.
| |
| getServerSocketFactory | back to summary |
|---|---|
| protected ServerSocketFactory getServerSocketFactory() Overrides ch. Doc from ch. Gets the platform default Subclasses may override to provide a custom server socket factory.
| |
| main | back to summary |
|---|---|
| public static void main(String[] argv) throws Exception | |