1 2 3 4 5 6 7 8 9 10
| System.setProperty("http.proxySet", "true");
System.setProperty("http.proxyHost", "xxxxxxxx");
System.setProperty("http.proxyPort", "8888");
System.setProperty("http.nonProxyHosts","xxxxxxx");
// si passe world
System.setProperty("http.proxyUser", "");
System.setProperty("http.proxyPassword", "");
// si besoin d'un certificat
System.setProperty("javax.net.ssl.trustStore", "chemin vers le fichier .keystore" );
System.setProperty("javax.net.ssl.trustStorePassword", "mot de passe défini lors de la création du .keystore" ); |