config.setRemoteProxySettings(new CRemoteProxySettings());
final CRemoteHttpProxySettings httpProxySettings = new CRemoteHttpProxySettings();
httpProxySettings.setProxyHostname("localhost");
httpProxySettings.setProxyPort(1234);
httpProxySettings.setAuthentication(new CRemoteAuthentication());
httpProxySettings.getAuthentication().setPassword(password);
final CRemoteHttpProxySettings httpsProxySettings = new CRemoteHttpProxySettings();
httpsProxySettings.setProxyHostname("localhost");
httpsProxySettings.setProxyPort(1234);
httpsProxySettings.setAuthentication(new CRemoteAuthentication());
httpsProxySettings.getAuthentication().setPassword(password);
config.getRemoteProxySettings().setHttpProxySettings(httpProxySettings);
config.getRemoteProxySettings().setHttpsProxySettings(httpsProxySettings);
// config.getSecurity().setAnonymousPassword( password );
//
// // anon username
// config.getSecurity().setAnonymousPassword( password );
// repo auth pass
CRepository central = this.getCentralRepo(config);
central.getRemoteStorage().setAuthentication(new CRemoteAuthentication());
central.getRemoteStorage().getAuthentication().setPassword(password);
// now we need to make the file valid....
config.getRemoteProxySettings().getHttpProxySettings().setProxyPort(1234);