// create wrappers around the trust managers
trustManagers = new StudioTrustManager[defaultTrustManagers.length];
for ( int i = 0; i < defaultTrustManagers.length; i++ )
{
trustManagers[i] = new StudioTrustManager( ( X509TrustManager ) defaultTrustManagers[i] );
}
// create the real socket factory
SSLContext sc = SSLContext.getInstance( "TLS" ); //$NON-NLS-1$
sc.init( null, trustManagers, null );