public class SimpleSSLSocketServer extends SimpleSocketServer
SimpleSocketServer
that supports SSL.
<b>Usage:</b> java ch.qos.logback.classic.net.ssl.SimpleSSLSocketServer port configFilewhere 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.
Constructor and Description |
---|
SimpleSSLSocketServer(LoggerContext lc,
int port)
Creates a new server using the default SSL context.
|
SimpleSSLSocketServer(LoggerContext lc,
int port,
javax.net.ssl.SSLContext sslContext)
Creates a new server using a custom SSL context.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] argv) |
close, configureLC, getLatch, isClosed, run, socketNodeClosing
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public SimpleSSLSocketServer(LoggerContext lc, int port) throws java.security.NoSuchAlgorithmException
lc
- logger context for received eventsport
- port on which the server is to listenjava.security.NoSuchAlgorithmException
- if the default SSL context cannot be
createdpublic SimpleSSLSocketServer(LoggerContext lc, int port, javax.net.ssl.SSLContext sslContext)
lc
- logger context for received eventsport
- port on which the server is to listensslContext
- custom SSL contextCopyright © 2010 - 2020 Adobe. All Rights Reserved