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 java.lang.String
DEFAULT_KEY_MANAGER_ALGORITHM
ConstantDEFAULT_KEY_MANAGER_ALGORITHM="SunX509"
static java.lang.String
DEFAULT_KEY_MANAGER_PROVIDER
ConstantDEFAULT_KEY_MANAGER_PROVIDER="SunJSSE"
static java.lang.String
DEFAULT_PASSWORD
ConstantDEFAULT_PASSWORD="123456"
static java.lang.String
DEFAULT_PATH_TO_KEY_STORE
ConstantDEFAULT_PATH_TO_KEY_STORE="src/main/resources/org/opennms/netmgt/p"{trunked}
static java.lang.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 java.lang.String
getKeyManagerAlgorithm()
getKeyManagerAlgorithmjava.lang.String
getKeyManagerProvider()
getKeyManagerProviderjava.lang.String
getPassword()
getPasswordjava.lang.String
getPathToKeyStore()
getPathToKeyStoreint
getPort()
getPortprotected SimpleServerRunnable
getRunnable()
getRunnablejava.lang.String
getSslContextProtocol()
getSslContextProtocolvoid
init()
initvoid
setKeyManagerAlgorithm(java.lang.String keyManagerAlgorithm)
setKeyManagerAlgorithmvoid
setKeyManagerProvider(java.lang.String keyManagerProvider)
setKeyManagerProvidervoid
setPassword(java.lang.String password)
setPasswordvoid
setPathToKeyStore(java.lang.String pathToKeyStore)
setPathToKeyStorevoid
setPort(int port)
setPortvoid
setSslContextProtocol(java.lang.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 java.lang.String DEFAULT_PASSWORD
ConstantDEFAULT_PASSWORD="123456"
- See Also:
- Constant Field Values
-
DEFAULT_PATH_TO_KEY_STORE
public static final java.lang.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 java.lang.String DEFAULT_KEY_MANAGER_ALGORITHM
ConstantDEFAULT_KEY_MANAGER_ALGORITHM="SunX509"
- See Also:
- Constant Field Values
-
DEFAULT_KEY_MANAGER_PROVIDER
public static final java.lang.String DEFAULT_KEY_MANAGER_PROVIDER
ConstantDEFAULT_KEY_MANAGER_PROVIDER="SunJSSE"
- See Also:
- Constant Field Values
-
DEFAULT_SSL_CONTEXT_PROTOCOL
public static final java.lang.String DEFAULT_SSL_CONTEXT_PROTOCOL
ConstantDEFAULT_SSL_CONTEXT_PROTOCOL="SSL"
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init() throws java.lang.Exception
init
- Overrides:
init
in classSimpleServer
- Throws:
java.lang.Exception
- if any.
-
getRunnable
protected SimpleServerRunnable getRunnable() throws java.io.IOException
getRunnable
- Overrides:
getRunnable
in classSimpleServer
- Returns:
- a
Runnable
object. - Throws:
java.lang.Exception
- if any.java.io.IOException
-
setPort
public void setPort(int port)
setPort
- Parameters:
port
- a int.
-
getPort
public int getPort()
getPort
- Returns:
- a int.
-
setPassword
public void setPassword(java.lang.String password)
setPassword
- Parameters:
password
- aString
object.
-
getPassword
public java.lang.String getPassword()
getPassword
- Returns:
- a
String
object.
-
setPathToKeyStore
public void setPathToKeyStore(java.lang.String pathToKeyStore)
setPathToKeyStore
- Parameters:
pathToKeyStore
- aString
object.
-
getPathToKeyStore
public java.lang.String getPathToKeyStore()
getPathToKeyStore
- Returns:
- a
String
object.
-
setKeyManagerAlgorithm
public void setKeyManagerAlgorithm(java.lang.String keyManagerAlgorithm)
setKeyManagerAlgorithm
- Parameters:
keyManagerAlgorithm
- aString
object.
-
getKeyManagerAlgorithm
public java.lang.String getKeyManagerAlgorithm()
getKeyManagerAlgorithm
- Returns:
- a
String
object.
-
setKeyManagerProvider
public void setKeyManagerProvider(java.lang.String keyManagerProvider)
setKeyManagerProvider
- Parameters:
keyManagerProvider
- aString
object.
-
getKeyManagerProvider
public java.lang.String getKeyManagerProvider()
getKeyManagerProvider
- Returns:
- a
String
object.
-
setSslContextProtocol
public void setSslContextProtocol(java.lang.String sslContextProtocol)
setSslContextProtocol
- Parameters:
sslContextProtocol
- aString
object.
-
getSslContextProtocol
public java.lang.String getSslContextProtocol()
getSslContextProtocol
- Returns:
- a
String
object.
-
-