List of usage examples for com.amazonaws ClientConfiguration withProxyPassword
public ClientConfiguration withProxyPassword(String proxyPassword)
From source file:com.noctarius.hazelcast.aws.HazelcastAwsDiscoveryStrategy.java
License:Open Source License
private void configureProxy(ClientConfiguration configuration) { String proxyHost = getOrNull(AwsProperties.PROXY_HOST); if (proxyHost == null) { return;/*from w w w .ja v a 2 s.co m*/ } int proxyPort = getOrDefault(AwsProperties.PROXY_PORT, 80); String proxyUsername = getOrNull(AwsProperties.PROXY_USERNAME); String proxyPassword = getOrNull(AwsProperties.PROXY_PASSWORD); configuration.withProxyHost(proxyHost).setProxyPort(proxyPort); configuration.withProxyUsername(proxyUsername); configuration.withProxyPassword(proxyPassword); }