Class SSLServer


  • public class SSLServer
    extends SimpleServer

    SSLServer class.

    Version:
    $Id: $
    Author:
    ranger
    • Field Detail

      • DEFAULT_TESTING_PORT

        public static final int DEFAULT_TESTING_PORT
        Constant DEFAULT_TESTING_PORT=7070
        See Also:
        Constant Field Values
      • DEFAULT_PASSWORD

        public static final java.lang.String DEFAULT_PASSWORD
        Constant DEFAULT_PASSWORD="123456"
        See Also:
        Constant Field Values
      • DEFAULT_PATH_TO_KEY_STORE

        public static final java.lang.String DEFAULT_PATH_TO_KEY_STORE
        Constant DEFAULT_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
        Constant DEFAULT_KEY_MANAGER_ALGORITHM="SunX509"
        See Also:
        Constant Field Values
      • DEFAULT_KEY_MANAGER_PROVIDER

        public static final java.lang.String DEFAULT_KEY_MANAGER_PROVIDER
        Constant DEFAULT_KEY_MANAGER_PROVIDER="SunJSSE"
        See Also:
        Constant Field Values
      • DEFAULT_SSL_CONTEXT_PROTOCOL

        public static final java.lang.String DEFAULT_SSL_CONTEXT_PROTOCOL
        Constant DEFAULT_SSL_CONTEXT_PROTOCOL="SSL"
        See Also:
        Constant Field Values
    • Constructor Detail

      • SSLServer

        public SSLServer()
    • Method Detail

      • init

        public void init()
                  throws java.lang.Exception

        init

        Overrides:
        init in class SimpleServer
        Throws:
        java.lang.Exception - if any.
      • getRunnable

        protected SimpleServerRunnable getRunnable()
                                            throws java.io.IOException

        getRunnable

        Overrides:
        getRunnable in class SimpleServer
        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 - a String object.
      • getPassword

        public java.lang.String getPassword()

        getPassword

        Returns:
        a String object.
      • setPathToKeyStore

        public void setPathToKeyStore​(java.lang.String pathToKeyStore)

        setPathToKeyStore

        Parameters:
        pathToKeyStore - a String object.
      • getPathToKeyStore

        public java.lang.String getPathToKeyStore()

        getPathToKeyStore

        Returns:
        a String object.
      • setKeyManagerAlgorithm

        public void setKeyManagerAlgorithm​(java.lang.String keyManagerAlgorithm)

        setKeyManagerAlgorithm

        Parameters:
        keyManagerAlgorithm - a String object.
      • getKeyManagerAlgorithm

        public java.lang.String getKeyManagerAlgorithm()

        getKeyManagerAlgorithm

        Returns:
        a String object.
      • setKeyManagerProvider

        public void setKeyManagerProvider​(java.lang.String keyManagerProvider)

        setKeyManagerProvider

        Parameters:
        keyManagerProvider - a String object.
      • getKeyManagerProvider

        public java.lang.String getKeyManagerProvider()

        getKeyManagerProvider

        Returns:
        a String object.
      • setSslContextProtocol

        public void setSslContextProtocol​(java.lang.String sslContextProtocol)

        setSslContextProtocol

        Parameters:
        sslContextProtocol - a String object.
      • getSslContextProtocol

        public java.lang.String getSslContextProtocol()

        getSslContextProtocol

        Returns:
        a String object.