org.eclipse.net4j.tcp.ssl
Class SSLUtil

java.lang.Object
  extended by 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

Constructor Summary
SSLUtil()
           
 
Method Summary
static SSLEngine createSSLEngine(boolean client, String host, int port)
           
static ITCPAcceptor getAcceptor(IManagedContainer container, String description)
           
static ITCPConnector getConnector(IManagedContainer container, String description)
           
static int getHandShakeTimeOut()
           
static int getHandShakeWaitTime()
           
static void prepareContainer(IManagedContainer container)
           
static void setDefaultSSLConfiguration(String keyPath, String trustPath, String passPhrase)
           
static void setDefaultSSLConfiguration(String keyPath, String trustPath, String passPhrase, int handShakeTimeOut, int handShakeWaitTime)
           
static void setSSLConfigurationFile(String file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLUtil

public SSLUtil()
Method Detail

setDefaultSSLConfiguration

public static void setDefaultSSLConfiguration(String keyPath,
                                              String trustPath,
                                              String passPhrase)

setDefaultSSLConfiguration

public static void setDefaultSSLConfiguration(String keyPath,
                                              String trustPath,
                                              String passPhrase,
                                              int handShakeTimeOut,
                                              int handShakeWaitTime)

setSSLConfigurationFile

public static void setSSLConfigurationFile(String file)

prepareContainer

public static void prepareContainer(IManagedContainer container)

getAcceptor

public static ITCPAcceptor getAcceptor(IManagedContainer container,
                                       String description)

getConnector

public static ITCPConnector getConnector(IManagedContainer container,
                                         String description)

createSSLEngine

public static SSLEngine createSSLEngine(boolean client,
                                        String host,
                                        int port)
                                 throws Exception
Throws:
Exception

getHandShakeTimeOut

public static int getHandShakeTimeOut()

getHandShakeWaitTime

public static int getHandShakeWaitTime()


Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.