public interface Credentials
| Modifier and Type | Method and Description |
|---|---|
void |
applyCredentials(org.apache.http.impl.client.HttpClientBuilder httpClientBuilder,
org.apache.http.client.methods.HttpRequestBase httpRequest)
Sets the authentication information in the http client and request.
|
void |
clearCredentials(org.apache.http.impl.client.HttpClientBuilder httpClientBuilder,
org.apache.http.client.methods.HttpRequestBase httpRequest)
Clears the authentication information from the http client and request.
|
void applyCredentials(org.apache.http.impl.client.HttpClientBuilder httpClientBuilder,
org.apache.http.client.methods.HttpRequestBase httpRequest)
throws org.apache.http.auth.AuthenticationException
httpClientBuilder - the Builder for CloseableHttpClient InstancehttpRequest - the request being authenticatedorg.apache.http.auth.AuthenticationException - if authorization string cannot
be generated due to an authentication failurevoid clearCredentials(org.apache.http.impl.client.HttpClientBuilder httpClientBuilder,
org.apache.http.client.methods.HttpRequestBase httpRequest)
httpClientBuilder - the Builder for CloseableHttpClient InstancehttpRequest - the request being authenticatedCopyright © 2017, Oracle and/or its affiliates. All rights reserved.