Package org.eclipse.net4j.tcp.ssl
Class SSLUtil
java.lang.Object
org.eclipse.net4j.tcp.ssl.SSLUtil
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SSLEngine
createSSLEngine
(boolean client, String host, int port) Deprecated.As of 4.4 no longer supported (was only used internally before).static ITCPAcceptor
getAcceptor
(org.eclipse.net4j.util.container.IManagedContainer container, String description) static String
static ITCPConnector
getConnector
(org.eclipse.net4j.util.container.IManagedContainer container, String description) static int
static int
static String
static String
static String
static String
static int
Deprecated.As of 4.4 usegetDefaultHandShakeTimeOut()
.static int
Deprecated.As of 4.4 usegetDefaultHandShakeWaitTime()
.static void
prepareContainer
(org.eclipse.net4j.util.container.IManagedContainer container) static void
setConfigFile
(String configFile) static void
setDefaultHandShakeTimeOut
(int defaultHandShakeTimeOut) static void
setDefaultHandShakeWaitTime
(int defaultHandShakeWaitTime) static void
setDefaultKeyPath
(String defaultKeyPath) static void
setDefaultPassPhrase
(String defaultPassPhrase) static void
setDefaultProtocol
(String defaultProtocol) static void
setDefaultSSLConfiguration
(String keyPath, String trustPath, String passPhrase) Deprecated.As of 4.4 usesetDefaultKeyPath(String)
,setDefaultTrustPath(String)
, andsetDefaultPassPhrase(String)
.static void
setDefaultSSLConfiguration
(String keyPath, String trustPath, String passPhrase, int handShakeTimeOut, int handShakeWaitTime) Deprecated.static void
setDefaultTrustPath
(String defaultTrustPath) static void
Deprecated.As of 4.4 usesetConfigFile(String)
.
-
Constructor Details
-
SSLUtil
public SSLUtil()
-
-
Method Details
-
getConfigFile
- Since:
- 4.4
-
setConfigFile
- Since:
- 4.4
-
getDefaultProtocol
- Since:
- 4.4
-
setDefaultProtocol
- Since:
- 4.4
-
getDefaultKeyPath
- Since:
- 4.4
-
setDefaultKeyPath
- Since:
- 4.4
-
getDefaultTrustPath
- Since:
- 4.4
-
setDefaultTrustPath
- Since:
- 4.4
-
getDefaultPassPhrase
- Since:
- 4.4
-
setDefaultPassPhrase
- 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.As of 4.4 usesetConfigFile(String)
. -
setDefaultSSLConfiguration
@Deprecated public static void setDefaultSSLConfiguration(String keyPath, String trustPath, String passPhrase) Deprecated.As of 4.4 usesetDefaultKeyPath(String)
,setDefaultTrustPath(String)
, andsetDefaultPassPhrase(String)
. -
setDefaultSSLConfiguration
@Deprecated public static void setDefaultSSLConfiguration(String keyPath, String trustPath, String passPhrase, int handShakeTimeOut, int handShakeWaitTime) Deprecated. -
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.As of 4.4 usegetDefaultHandShakeTimeOut()
. -
getHandShakeWaitTime
Deprecated.As of 4.4 usegetDefaultHandShakeWaitTime()
.
-