biz.onixs.fix.engine.ssl
Class SSLContextFactory

java.lang.Object
  extended by biz.onixs.fix.engine.ssl.SSLContextFactory

public class SSLContextFactory
extends Object


Constructor Summary
SSLContextFactory()
           
 
Method Summary
static SSLContext getInstance(String keyStoreName, String trustStoreName, String keyStorePassword)
          Returns SSL context for the specified parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLContextFactory

public SSLContextFactory()
Method Detail

getInstance

public static SSLContext getInstance(String keyStoreName,
                                     String trustStoreName,
                                     String keyStorePassword)
                              throws GeneralSecurityException
Returns SSL context for the specified parameters.

Parameters:
keyStoreName - key store resource name; is loaded via classpath
trustStoreName - trust store resource name; is loaded via classpath; can be set to null if you don't want to validate counterparty's certificate
keyStorePassword - key pair password used during key pair generation
Returns:
SSL context
Throws:
GeneralSecurityException - if security exception occured


Copyright © 2005-2012 Onix Solutions. All Rights Reserved.