Example usage for org.apache.http.impl.client HttpClientBuilder setTargetAuthenticationStrategy

List of usage examples for org.apache.http.impl.client HttpClientBuilder setTargetAuthenticationStrategy

Introduction

In this page you can find the example usage for org.apache.http.impl.client HttpClientBuilder setTargetAuthenticationStrategy.

Prototype

public final HttpClientBuilder setTargetAuthenticationStrategy(
        final AuthenticationStrategy targetAuthStrategy) 

Source Link

Document

Assigns AuthenticationStrategy instance for proxy authentication.

Usage

From source file:com.joyent.http.signature.apache.httpclient.HttpSignatureConfigurator.java

/**
 * Configures a {@link HttpClientBuilder} to use HTTP Signature authentication.
 *
 * @param httpClientBuilder build to configure
 *///from  w  ww . j  a v  a 2s . co  m
public void configure(final HttpClientBuilder httpClientBuilder) {
    httpClientBuilder.setTargetAuthenticationStrategy(authenticationStrategy);
}