SHARE
TWEET

Untitled

a guest Jun 19th, 2019 121 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Lazy
  2.    public ClientAndServer mockServer() {
  3.  
  4.        ConfigurationProperties.deleteGeneratedKeyStoreOnExit(true);
  5.        ClientAndServer mockServer = ClientAndServer.startClientAndServer(7071);
  6.        HttpsURLConnection
  7.                .setDefaultSSLSocketFactory(KeyStoreFactory.keyStoreFactory().sslContext().getSocketFactory());
  8.  
  9.        return mockServer;
  10.    }
  11.      
  12. <http:tlsClientParameters disableCNCheck="true" secureSocketProtocol="TLSv1.2">
  13.             <sec:keyManagers keyPassword="#{environment['bridge.conduit.keystore.password']}">
  14.                 <sec:keyStore type="${bridge.conduit.keystore.type}"
  15.                     password="#{environment['bridge.conduit.keystore.password']}"
  16.                     file="${bridge.conduit.keystore.location}" />
  17.             </sec:keyManagers>
  18.         </http:tlsClientParameters>
  19.  
  20.         <http:client Connection="close" ConnectionTimeout="${bridge.conduit.connectionTimeout:30000}"
  21.             ReceiveTimeout="${bridge.conduit.receiveTimeout:120000}" ProxyServer="${bridge.conduit.proxy.address:}"
  22.             ProxyServerPort="${bridge.conduit.proxy.port:}" ProxyServerType="HTTP" AutoRedirect="true" AllowChunking="false" />
  23.  
  24.         <http:proxyAuthorization>
  25.             <sec:UserName>"${bridge.conduit.proxy.username:}"</sec:UserName>
  26.             <sec:Password>"${bridge.conduit.proxy.password:}"</sec:Password>
  27.         </http:proxyAuthorization>
  28.     </http:conduit>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top