public class ApacheAuthenticationSchemeHttpContextBuilder extends Object implements Builder<org.apache.http.protocol.HttpContext>, ConfigurableHttpClient
HttpContext
is used to share information, in
this case, which authentication scheme the client should be using (based on the target URL).Modifier and Type | Method and Description |
---|---|
static ApacheAuthenticationSchemeHttpContextBuilder |
anApacheBasicAuthScheme() |
org.apache.http.protocol.HttpContext |
build() |
ApacheAuthenticationSchemeHttpContextBuilder |
withBasicAuthCredentials(String username,
String password,
URL url) |
ApacheAuthenticationSchemeHttpContextBuilder |
withOAuthCredentials(String accessToken,
URL url) |
public static ApacheAuthenticationSchemeHttpContextBuilder anApacheBasicAuthScheme()
public ApacheAuthenticationSchemeHttpContextBuilder withBasicAuthCredentials(String username, String password, URL url)
withBasicAuthCredentials
in interface ConfigurableHttpClient
public ApacheAuthenticationSchemeHttpContextBuilder withOAuthCredentials(String accessToken, URL url)
withOAuthCredentials
in interface ConfigurableHttpClient
Copyright © 2013. All rights reserved.