Class SSLServer
- java.lang.Object
-
- org.opennms.netmgt.provision.server.exchange.SimpleConversationEndPoint
-
- org.opennms.netmgt.provision.server.SimpleServer
-
- org.opennms.netmgt.provision.server.SSLServer
-
public class SSLServer extends SimpleServer
SSLServer class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.netmgt.provision.server.SimpleServer
SimpleServer.ServerErrorExchange
-
Nested classes/interfaces inherited from class org.opennms.netmgt.provision.server.exchange.SimpleConversationEndPoint
SimpleConversationEndPoint.SimpleExchange
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_KEY_MANAGER_ALGORITHM
ConstantDEFAULT_KEY_MANAGER_ALGORITHM="SunX509"
static String
DEFAULT_KEY_MANAGER_PROVIDER
ConstantDEFAULT_KEY_MANAGER_PROVIDER="SunJSSE"
static String
DEFAULT_PASSWORD
ConstantDEFAULT_PASSWORD="123456"
static String
DEFAULT_PATH_TO_KEY_STORE
ConstantDEFAULT_PATH_TO_KEY_STORE="src/main/resources/org/opennms/netmgt/p"{trunked}
static String
DEFAULT_SSL_CONTEXT_PROTOCOL
ConstantDEFAULT_SSL_CONTEXT_PROTOCOL="SSL"
static int
DEFAULT_TESTING_PORT
ConstantDEFAULT_TESTING_PORT=7070
-
Fields inherited from class org.opennms.netmgt.provision.server.SimpleServer
m_stopped
-
Fields inherited from class org.opennms.netmgt.provision.server.exchange.SimpleConversationEndPoint
m_conversation
-
-
Constructor Summary
Constructors Constructor Description SSLServer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getKeyManagerAlgorithm()
getKeyManagerAlgorithmString
getKeyManagerProvider()
getKeyManagerProviderString
getPassword()
getPasswordString
getPathToKeyStore()
getPathToKeyStoreint
getPort()
getPortprotected SimpleServerRunnable
getRunnable()
getRunnableString
getSslContextProtocol()
getSslContextProtocolvoid
init()
initvoid
setKeyManagerAlgorithm(String keyManagerAlgorithm)
setKeyManagerAlgorithmvoid
setKeyManagerProvider(String keyManagerProvider)
setKeyManagerProvidervoid
setPassword(String password)
setPasswordvoid
setPathToKeyStore(String pathToKeyStore)
setPathToKeyStorevoid
setPort(int port)
setPortvoid
setSslContextProtocol(String sslContextProtocol)
setSslContextProtocol-
Methods inherited from class org.opennms.netmgt.provision.server.SimpleServer
addErrorHandler, attemptConversation, dispose, errorString, getBanner, getInetAddress, getLocalPort, getServerSocket, getServerThread, getSocket, getThreadSleepLength, onInit, sendBanner, setBanner, setBannerDelay, setServerSocket, setServerThread, setSocket, setThreadSleepLength, shutdownServer, startServer, stopServer
-
Methods inherited from class org.opennms.netmgt.provision.server.exchange.SimpleConversationEndPoint
addResponseHandler, contains, getTimeout, matches, multilineLineRequest, setTimeout, singleLineRequest, startsWith
-
-
-
-
Field Detail
-
DEFAULT_TESTING_PORT
public static final int DEFAULT_TESTING_PORT
ConstantDEFAULT_TESTING_PORT=7070
- See Also:
- Constant Field Values
-
DEFAULT_PASSWORD
public static final String DEFAULT_PASSWORD
ConstantDEFAULT_PASSWORD="123456"
- See Also:
- Constant Field Values
-
DEFAULT_PATH_TO_KEY_STORE
public static final String DEFAULT_PATH_TO_KEY_STORE
ConstantDEFAULT_PATH_TO_KEY_STORE="src/main/resources/org/opennms/netmgt/p"{trunked}
- See Also:
- Constant Field Values
-
DEFAULT_KEY_MANAGER_ALGORITHM
public static final String DEFAULT_KEY_MANAGER_ALGORITHM
ConstantDEFAULT_KEY_MANAGER_ALGORITHM="SunX509"
- See Also:
- Constant Field Values
-
DEFAULT_KEY_MANAGER_PROVIDER
public static final String DEFAULT_KEY_MANAGER_PROVIDER
ConstantDEFAULT_KEY_MANAGER_PROVIDER="SunJSSE"
- See Also:
- Constant Field Values
-
DEFAULT_SSL_CONTEXT_PROTOCOL
public static final String DEFAULT_SSL_CONTEXT_PROTOCOL
ConstantDEFAULT_SSL_CONTEXT_PROTOCOL="SSL"
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init() throws Exception
init
- Overrides:
init
in classSimpleServer
- Throws:
Exception
- if any.
-
getRunnable
protected SimpleServerRunnable getRunnable() throws IOException
getRunnable
- Overrides:
getRunnable
in classSimpleServer
- Returns:
- a
Runnable
object. - Throws:
Exception
- if any.IOException
-
setPort
public void setPort(int port)
setPort
- Parameters:
port
- a int.
-
getPort
public int getPort()
getPort
- Returns:
- a int.
-
setPassword
public void setPassword(String password)
setPassword
- Parameters:
password
- aString
object.
-
setPathToKeyStore
public void setPathToKeyStore(String pathToKeyStore)
setPathToKeyStore
- Parameters:
pathToKeyStore
- aString
object.
-
setKeyManagerAlgorithm
public void setKeyManagerAlgorithm(String keyManagerAlgorithm)
setKeyManagerAlgorithm
- Parameters:
keyManagerAlgorithm
- aString
object.
-
getKeyManagerAlgorithm
public String getKeyManagerAlgorithm()
getKeyManagerAlgorithm
- Returns:
- a
String
object.
-
setKeyManagerProvider
public void setKeyManagerProvider(String keyManagerProvider)
setKeyManagerProvider
- Parameters:
keyManagerProvider
- aString
object.
-
getKeyManagerProvider
public String getKeyManagerProvider()
getKeyManagerProvider
- Returns:
- a
String
object.
-
setSslContextProtocol
public void setSslContextProtocol(String sslContextProtocol)
setSslContextProtocol
- Parameters:
sslContextProtocol
- aString
object.
-
-