org.abstracthorizon.danube.service.util
Class SSLUtil

java.lang.Object
  extended by org.abstracthorizon.danube.service.util.SSLUtil

public class SSLUtil
extends Object

Utility class for SSL connections

Author:
Daniel Sendula

Constructor Summary
SSLUtil()
           
 
Method Summary
static SSLServerSocketFactory getServerSocketFactory(char[] passphrase, InputStream keystore)
          This method returns SSL server socket factory based on passphrase from given keystore
static SSLSocketFactory getSocketFactory(char[] passphrase, InputStream keystore)
          This method returns SSL socket factory based on passphrase from given keystore
 
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

getSocketFactory

public static SSLSocketFactory getSocketFactory(char[] passphrase,
                                                InputStream keystore)
This method returns SSL socket factory based on passphrase from given keystore

Parameters:
passphrase - passphrase of keystore
keystore - keystore input stream
Returns:
SSL socket factory

getServerSocketFactory

public static SSLServerSocketFactory getServerSocketFactory(char[] passphrase,
                                                            InputStream keystore)
This method returns SSL server socket factory based on passphrase from given keystore

Parameters:
passphrase - passphrase of keystore
keystore - keystore input stream
Returns:
SSL socket factory


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.