+ public void launchAuthenticator() {
+ final String authUser = "as373024";
+ final String authPassword = "Zx1--L12";
+ final String authHost = "gskproxy.gsk.com";
+ final String authPort = "800";
+ Authenticator.setDefault(new Authenticator() {
+ public PasswordAuthentication getPasswordAuthentication() {
+ return new PasswordAuthentication(authUser, authPassword.toCharArray());
+ }
+ });
+ System.setProperty("proxySet", "true");
+ System.setProperty("http.proxyUser", authUser);
+ System.setProperty("http.proxyPassword", authPassword);
+ System.setProperty("http.proxyHost", authHost);
+ System.setProperty("http.proxyPort", authPort);
+ }
+