public class SSLServer extends SimpleServer
SSLServer class.
SimpleServer.ServerErrorExchange
SimpleConversationEndPoint.SimpleExchange
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_KEY_MANAGER_ALGORITHM
Constant
DEFAULT_KEY_MANAGER_ALGORITHM="SunX509" |
static String |
DEFAULT_KEY_MANAGER_PROVIDER
Constant
DEFAULT_KEY_MANAGER_PROVIDER="SunJSSE" |
static String |
DEFAULT_PASSWORD
Constant
DEFAULT_PASSWORD="123456" |
static String |
DEFAULT_PATH_TO_KEY_STORE
Constant
DEFAULT_PATH_TO_KEY_STORE="src/main/resources/org/opennms/netmgt/p"{trunked} |
static String |
DEFAULT_SSL_CONTEXT_PROTOCOL
Constant
DEFAULT_SSL_CONTEXT_PROTOCOL="SSL" |
static int |
DEFAULT_TESTING_PORT
Constant
DEFAULT_TESTING_PORT=7070 |
m_stopped
m_conversation
Constructor and Description |
---|
SSLServer() |
Modifier and Type | Method and Description |
---|---|
String |
getKeyManagerAlgorithm()
getKeyManagerAlgorithm
|
String |
getKeyManagerProvider()
getKeyManagerProvider
|
String |
getPassword()
getPassword
|
String |
getPathToKeyStore()
getPathToKeyStore
|
int |
getPort()
getPort
|
protected SimpleServerRunnable |
getRunnable()
getRunnable
|
String |
getSslContextProtocol()
getSslContextProtocol
|
void |
init()
init
|
void |
setKeyManagerAlgorithm(String keyManagerAlgorithm)
setKeyManagerAlgorithm
|
void |
setKeyManagerProvider(String keyManagerProvider)
setKeyManagerProvider
|
void |
setPassword(String password)
setPassword
|
void |
setPathToKeyStore(String pathToKeyStore)
setPathToKeyStore
|
void |
setPort(int port)
setPort
|
void |
setSslContextProtocol(String sslContextProtocol)
setSslContextProtocol
|
addErrorHandler, attemptConversation, dispose, errorString, getBanner, getInetAddress, getLocalPort, getServerSocket, getServerThread, getSocket, getThreadSleepLength, onInit, sendBanner, setBanner, setBannerDelay, setServerSocket, setServerThread, setSocket, setThreadSleepLength, shutdownServer, startServer, stopServer
addResponseHandler, contains, getTimeout, matches, multilineLineRequest, setTimeout, singleLineRequest, startsWith
public static final int DEFAULT_TESTING_PORT
DEFAULT_TESTING_PORT=7070
public static final String DEFAULT_PASSWORD
DEFAULT_PASSWORD="123456"
public static final String DEFAULT_PATH_TO_KEY_STORE
DEFAULT_PATH_TO_KEY_STORE="src/main/resources/org/opennms/netmgt/p"{trunked}
public static final String DEFAULT_KEY_MANAGER_ALGORITHM
DEFAULT_KEY_MANAGER_ALGORITHM="SunX509"
public static final String DEFAULT_KEY_MANAGER_PROVIDER
DEFAULT_KEY_MANAGER_PROVIDER="SunJSSE"
public static final String DEFAULT_SSL_CONTEXT_PROTOCOL
DEFAULT_SSL_CONTEXT_PROTOCOL="SSL"
public void init() throws Exception
init
init
in class SimpleServer
Exception
- if any.protected SimpleServerRunnable getRunnable() throws IOException
getRunnable
getRunnable
in class SimpleServer
Runnable
object.Exception
- if any.IOException
public void setPort(int port)
setPort
port
- a int.public int getPort()
getPort
public void setPassword(String password)
setPassword
password
- a String
object.public void setPathToKeyStore(String pathToKeyStore)
setPathToKeyStore
pathToKeyStore
- a String
object.public void setKeyManagerAlgorithm(String keyManagerAlgorithm)
setKeyManagerAlgorithm
keyManagerAlgorithm
- a String
object.public String getKeyManagerAlgorithm()
getKeyManagerAlgorithm
String
object.public void setKeyManagerProvider(String keyManagerProvider)
setKeyManagerProvider
keyManagerProvider
- a String
object.public String getKeyManagerProvider()
getKeyManagerProvider
String
object.public void setSslContextProtocol(String sslContextProtocol)
setSslContextProtocol
sslContextProtocol
- a String
object.Copyright © 2021. All rights reserved.