Package org.eclipse.net4j.tcp.ssl

# Klasse 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.

Seit:
  4.0
Autor:
  Teerawat Chaiyakijpichet (No Magic Asia Ltd.), Caspar De Groot (No Magic Asia Ltd.)

## Konstruktorübersicht

Konstruktoren
Konstruktor
Beschreibung
`SSLUtil()`

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`static SSLEngine`
`createSSLEngine(boolean client, String host, int port)`
Veraltet.
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`
`getConfigFile()`
`static ITCPConnector`
`getConnector(org.eclipse.net4j.util.container.IManagedContainer container, String description)`
`static int`
`getDefaultHandShakeTimeOut()`
`static int`
`getDefaultHandShakeWaitTime()`
`static String`
`getDefaultKeyPath()`
`static String`
`getDefaultPassPhrase()`
`static String`
`getDefaultProtocol()`
`static String`
`getDefaultTrustPath()`
`static int`
`getHandShakeTimeOut()`
Veraltet.
As of 4.4 use `getDefaultHandShakeTimeOut()`.
`static int`
`getHandShakeWaitTime()`
Veraltet.
As of 4.4 use `getDefaultHandShakeWaitTime()`.
`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)`
Veraltet.
As of 4.4 use `setDefaultKeyPath(String)`, `setDefaultTrustPath(String)`, and `setDefaultPassPhrase(String)`.
`static void`
`setDefaultSSLConfiguration(String keyPath, String trustPath, String passPhrase, int handShakeTimeOut, int handShakeWaitTime)`
Veraltet.
As of 4.4 use `setDefaultKeyPath(String)`, `setDefaultTrustPath(String)`, `setDefaultPassPhrase(String)`, `setDefaultHandShakeTimeOut(int)`, and `setDefaultHandShakeWaitTime(int)`.
`static void`
`setDefaultTrustPath(String defaultTrustPath)`
`static void`
`setSSLConfigurationFile(String file)`
Veraltet.
As of 4.4 use `setConfigFile(String)`.

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Konstruktordetails

### SSLUtil

public SSLUtil()

## Methodendetails

### getConfigFile

public static String getConfigFile()

Seit:
  4.4

### setConfigFile

public static void setConfigFile(String configFile)

Seit:
  4.4

### getDefaultProtocol

public static String getDefaultProtocol()

Seit:
  4.4

### setDefaultProtocol

public static void setDefaultProtocol(String defaultProtocol)

Seit:
  4.4

### getDefaultKeyPath

public static String getDefaultKeyPath()

Seit:
  4.4

### setDefaultKeyPath

public static void setDefaultKeyPath(String defaultKeyPath)

Seit:
  4.4

### getDefaultTrustPath

public static String getDefaultTrustPath()

Seit:
  4.4

### setDefaultTrustPath

public static void setDefaultTrustPath(String defaultTrustPath)

Seit:
  4.4

### getDefaultPassPhrase

public static String getDefaultPassPhrase()

Seit:
  4.4

### setDefaultPassPhrase

public static void setDefaultPassPhrase(String defaultPassPhrase)

Seit:
  4.4

### getDefaultHandShakeTimeOut

public static int getDefaultHandShakeTimeOut()

Seit:
  4.4

### setDefaultHandShakeTimeOut

public static void setDefaultHandShakeTimeOut(int defaultHandShakeTimeOut)

Seit:
  4.4

### getDefaultHandShakeWaitTime

public static int getDefaultHandShakeWaitTime()

Seit:
  4.4

### setDefaultHandShakeWaitTime

public static void setDefaultHandShakeWaitTime(int defaultHandShakeWaitTime)

Seit:
  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)
Veraltet.
As of 4.4 use `setConfigFile(String)`.

### setDefaultSSLConfiguration

@Deprecated public static void setDefaultSSLConfiguration(String keyPath, String trustPath, String passPhrase)
Veraltet.
As of 4.4 use `setDefaultKeyPath(String)`, `setDefaultTrustPath(String)`, and `setDefaultPassPhrase(String)`.

### setDefaultSSLConfiguration

@Deprecated public static void setDefaultSSLConfiguration(String keyPath, String trustPath, String passPhrase, int handShakeTimeOut, int handShakeWaitTime)
Veraltet.
As of 4.4 use `setDefaultKeyPath(String)`, `setDefaultTrustPath(String)`, `setDefaultPassPhrase(String)`, `setDefaultHandShakeTimeOut(int)`, and `setDefaultHandShakeWaitTime(int)`.

### createSSLEngine

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

Löst aus:
  `Exception`

### getHandShakeTimeOut

@Deprecated public static int getHandShakeTimeOut()
Veraltet.
As of 4.4 use `getDefaultHandShakeTimeOut()`.

### getHandShakeWaitTime

@Deprecated public static int getHandShakeWaitTime()
Veraltet.
As of 4.4 use `getDefaultHandShakeWaitTime()`.