Example usage for com.amazonaws ClientConfiguration withProxyPassword

List of usage examples for com.amazonaws ClientConfiguration withProxyPassword

Introduction

In this page you can find the example usage for com.amazonaws ClientConfiguration withProxyPassword.

Prototype

public ClientConfiguration withProxyPassword(String proxyPassword) 

Source Link

Document

Sets the optional proxy password to use when connecting through a proxy, and returns the updated ClientConfiguration object.

Usage

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);
}