org.abstracthorizon.danube.service.util
Class SSLUtil
java.lang.Object
org.abstracthorizon.danube.service.util.SSLUtil
public class SSLUtil
- extends Object
Utility class for SSL connections
- Author:
- Daniel Sendula
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSLUtil
public SSLUtil()
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 keystorekeystore
- 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 keystorekeystore
- keystore input stream
- Returns:
- SSL socket factory
Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.