public static String getDefaultSSLSocketFactory ( ) { if ( defaultSSLSocketFactory == null ) { defaultSSLSocketFactory = AccessController . doPrivileged ( new PrivilegedAction < String > ( ) { @ Override public String run ( ) { return Security . getProperty ( "ssl.SocketFactory.provider" ) ; } } ) ; } return defaultSSLSocketFactory ; }
Get the default SSLSocketFactory from Security .