public interface Credentials
Modifier and Type | Method and Description |
---|---|
void |
applyCredentials(org.apache.http.impl.client.DefaultHttpClient httpClient,
org.apache.http.client.methods.HttpRequestBase httpRequest)
Sets the authentication information in the http client and request.
|
void |
clearCredentials(org.apache.http.impl.client.DefaultHttpClient httpClient,
org.apache.http.client.methods.HttpRequestBase httpRequest)
Clears the authentication information from the http client and request.
|
void applyCredentials(org.apache.http.impl.client.DefaultHttpClient httpClient, org.apache.http.client.methods.HttpRequestBase httpRequest) throws org.apache.http.auth.AuthenticationException
httpClient
- the client being authenticatedhttpRequest
- 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.DefaultHttpClient httpClient, org.apache.http.client.methods.HttpRequestBase httpRequest)
httpClient
- the client being authenticatedhttpRequest
- the request being authenticatedCopyright © 2014, Oracle and/or its affiliates. All rights reserved.