private ManagerFactoryParameters trustManagerFactoryParameters = null;
protected Object createInstance() throws Exception
{
KeyManagerFactory kmf = this.keyManagerFactory;
TrustManagerFactory tmf = this.trustManagerFactory;
if( kmf == null )
{
String algorithm = keyManagerFactoryAlgorithm;
if( algorithm == null && keyManagerFactoryAlgorithmUseDefault )
{
algorithm = KeyManagerFactory.getDefaultAlgorithm();
}
if( algorithm != null )
{
if( keyManagerFactoryProvider == null )
{
kmf = KeyManagerFactory.getInstance( algorithm );
}
else
{
kmf = KeyManagerFactory.getInstance( algorithm,
keyManagerFactoryProvider );
}
}
}
if( tmf == null )
{
String algorithm = trustManagerFactoryAlgorithm;
if( algorithm == null && trustManagerFactoryAlgorithmUseDefault )
{
algorithm = TrustManagerFactory.getDefaultAlgorithm();
}
if( algorithm != null )
{
if( trustManagerFactoryProvider == null )
{
tmf = TrustManagerFactory.getInstance( algorithm );
}
else
{
tmf = TrustManagerFactory.getInstance( algorithm,
trustManagerFactoryProvider );
}
}
}
KeyManager[] keyManagers = null;
if( kmf != null )
{
kmf.init( keyManagerFactoryKeyStore,
keyManagerFactoryKeyStorePassword );
keyManagers = kmf.getKeyManagers();
}
TrustManager[] trustManagers = null;
if( tmf != null )
{
if( trustManagerFactoryParameters != null )
{
tmf.init( trustManagerFactoryParameters );
}
else
{
tmf.init( trustManagerFactoryKeyStore );
}
trustManagers = tmf.getTrustManagers();
}
SSLContext context = null;
if( provider == null )
{