Class SSLUtil

java.lang.Object
org.eclipse.net4j.tcp.ssl.SSLUtil

public class SSLUtil extends Object
A utility class with various static factory and convenience methods for SSL transport.
Since:
4.0
Author:
Teerawat Chaiyakijpichet (No Magic Asia Ltd.), Caspar De Groot (No Magic Asia Ltd.)
  • Constructor Details

    • SSLUtil

      public SSLUtil()
  • Method Details

    • getConfigFile

      public static String getConfigFile()
      Since:
      4.4
    • setConfigFile

      public static void setConfigFile(String configFile)
      Since:
      4.4
    • getDefaultProtocol

      public static String getDefaultProtocol()
      Since:
      4.4
    • setDefaultProtocol

      public static void setDefaultProtocol(String defaultProtocol)
      Since:
      4.4
    • getDefaultKeyPath

      public static String getDefaultKeyPath()
      Since:
      4.4
    • setDefaultKeyPath

      public static void setDefaultKeyPath(String defaultKeyPath)
      Since:
      4.4
    • getDefaultTrustPath

      public static String getDefaultTrustPath()
      Since:
      4.4
    • setDefaultTrustPath

      public static void setDefaultTrustPath(String defaultTrustPath)
      Since:
      4.4
    • getDefaultPassPhrase

      public static String getDefaultPassPhrase()
      Since:
      4.4
    • setDefaultPassPhrase

      public static void setDefaultPassPhrase(String defaultPassPhrase)
      Since:
      4.4
    • getDefaultHandShakeTimeOut

      public static int getDefaultHandShakeTimeOut()
      Since:
      4.4
    • setDefaultHandShakeTimeOut

      public static void setDefaultHandShakeTimeOut(int defaultHandShakeTimeOut)
      Since:
      4.4
    • getDefaultHandShakeWaitTime

      public static int getDefaultHandShakeWaitTime()
      Since:
      4.4
    • setDefaultHandShakeWaitTime

      public static void setDefaultHandShakeWaitTime(int defaultHandShakeWaitTime)
      Since:
      4.4
    • prepareContainer

      public static void prepareContainer(org.eclipse.net4j.util.container.IManagedContainer container)
    • getAcceptor

      public static ITCPAcceptor getAcceptor(org.eclipse.net4j.util.container.IManagedContainer container, String description)
    • getConnector

      public static ITCPConnector getConnector(org.eclipse.net4j.util.container.IManagedContainer container, String description)
    • setSSLConfigurationFile

      @Deprecated public static void setSSLConfigurationFile(String file)
      Deprecated.
      As of 4.4 use setConfigFile(String).
    • setDefaultSSLConfiguration

      @Deprecated public static void setDefaultSSLConfiguration(String keyPath, String trustPath, String passPhrase)
    • setDefaultSSLConfiguration

      @Deprecated public static void setDefaultSSLConfiguration(String keyPath, String trustPath, String passPhrase, int handShakeTimeOut, int handShakeWaitTime)
    • createSSLEngine

      @Deprecated public static SSLEngine createSSLEngine(boolean client, String host, int port) throws Exception
      Deprecated.
      As of 4.4 no longer supported (was only used internally before).
      Throws:
      Exception
    • getHandShakeTimeOut

      @Deprecated public static int getHandShakeTimeOut()
      Deprecated.
    • getHandShakeWaitTime

      @Deprecated public static int getHandShakeWaitTime()
      Deprecated.