Source:
public static org.apache.commons.httpclient.HttpClient getClient ( ) { org.apache.commons.httpclient.HttpClient httpClient = new org.apache.commons.httpclient.HttpClient ( ) ; if ( org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.SecureConnectionWithOATServers ) ) { java.net.URL trustStoreUrl ; try { int port = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.AttestationPort ) ; trustStoreUrl = new java.net.URL ( ( "file://" + ( org.ovirt.engine.core.common.config.Config.resolveAttestationTrustStorePath ( ) ) ) ) ; java.lang.String truststorePassword = org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.AttestationTruststorePass ) ; java.lang.String attestationServer = org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.AttestationServer ) ; org.apache.commons.httpclient.protocol.ProtocolSocketFactory factory = new org.ovirt.engine.core.utils.ssl.AuthSSLProtocolSocketFactory ( org.ovirt.engine.core.vdsbroker.attestation.AttestationService.getTrustStore ( trustStoreUrl.getPath ( ) , truststorePassword ) ) ; org.apache.commons.httpclient.protocol.Protocol clientAuthHTTPS = new org.apache.commons.httpclient.protocol.Protocol ( "https" , factory , port ) ; httpClient.getHostConfiguration ( ) . setHost ( attestationServer , port , clientAuthHTTPS ) ; } catch ( java.lang.Exception e ) { org.ovirt.engine.core.vdsbroker.attestation.AttestationService.log.error ( "Failed to init AuthSSLProtocolSocketFactory. SSL connections will not work: {}" , e.getMessage ( ) ) ; org.ovirt.engine.core.vdsbroker.attestation.AttestationService.log.debug ( "Exception" , e ) ; } } return httpClient ; }

Target:
public static org.apache.commons.httpclient.HttpClient getClient ( ) { org.apache.commons.httpclient.HttpClient httpClient = new org.apache.commons.httpclient.HttpClient ( ) ; if ( org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.SecureConnectionWithOATServers ) ) { java.net.URL trustStoreUrl ; try { int port = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.AttestationPort ) ; trustStoreUrl = new java.net.URL ( ( "file://" + ( org.ovirt.engine.core.common.config.Config.resolveAttestationTrustStorePath ( ) ) ) ) ; java.lang.String truststorePassword = org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.AttestationTruststorePass ) ; java.lang.String attestationServer = org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.AttestationServer ) ; org.apache.commons.httpclient.protocol.ProtocolSocketFactory factory = new org.ovirt.engine.core.utils.ssl.AuthSSLProtocolSocketFactory ( org.ovirt.engine.core.vdsbroker.attestation.AttestationService.getTrustStore ( trustStoreUrl.getPath ( ) , truststorePassword ) , "SSLv3" ) ; org.apache.commons.httpclient.protocol.Protocol clientAuthHTTPS = new org.apache.commons.httpclient.protocol.Protocol ( "https" , factory , port ) ; httpClient.getHostConfiguration ( ) . setHost ( attestationServer , port , clientAuthHTTPS ) ; } catch ( java.lang.Exception e ) { org.ovirt.engine.core.vdsbroker.attestation.AttestationService.log.error ( "Failed to init AuthSSLProtocolSocketFactory. SSL connections will not work: {}" , e.getMessage ( ) ) ; org.ovirt.engine.core.vdsbroker.attestation.AttestationService.log.debug ( "Exception" , e ) ; } } return httpClient ; }