Examples of withAuthenticationConfig()


Examples of org.sonatype.nexus.component.source.api.http.HttpClientConfig.withAuthenticationConfig()

  @Override
  public HttpClientConfig fromMap(final Map<String, Object> config) {
    HttpClientConfig clientConfig = new HttpClientConfig();
    clientConfig.withConnectionConfig(connectionFromMap(config));
    clientConfig.withAuthenticationConfig(authenticationFromMap(config, "http"));
    clientConfig.withProxyConfig(proxyFromMap(config));
    return clientConfig;
  }

  private ConnectionConfig connectionFromMap(final Map<String, Object> configMap) {
View Full Code Here

Examples of org.sonatype.nexus.component.source.api.http.HttpProxyConfig.withAuthenticationConfig()

    HttpProxyConfig httpProxyConfig = null;
    if (configMap.containsKey(prefix + ".hostname")) {
      httpProxyConfig = new HttpProxyConfig();
      httpProxyConfig.withHostname((String) configMap.get(prefix + ".hostname"));
      httpProxyConfig.withPort((Integer) configMap.get(prefix + ".port"));
      httpProxyConfig.withAuthenticationConfig(authenticationFromMap(configMap, prefix));
    }
    return httpProxyConfig;
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.