| java.lang.Object com.bostechcorp.cbesb.runtime.component.http.client.HttpClientCredentialsProvider
HttpClientCredentialsProvider | public class HttpClientCredentialsProvider implements CredentialsProvider(Code) | | |
Method Summary | |
public Credentials | getCredentials(AuthScheme authscheme, String host, int port, boolean proxy) Called when a server requires authentication. | public void | setProxyUsernamePassword(String username, String password) Sets the user and password to use for authentication on a proxy server.
Parameters: username - - the username to log in to the server. | public void | setUsernamePassword(String username, String password) Sets the user and password to use for authentication.
Parameters: username - - the username to log in to the server. |
HttpClientCredentialsProvider | public HttpClientCredentialsProvider()(Code) | | Constructor
|
getCredentials | public Credentials getCredentials(AuthScheme authscheme, String host, int port, boolean proxy) throws CredentialsNotAvailableException(Code) | | Called when a server requires authentication. If the authentication scheme is NTLM, then NTCredentials
are supplied, otherwise UsernamePasswordCredentials are supplied.
Parameters: authscheme - - The authorization scheme requested by the server. Parameters: host - - The server hostname Parameters: port - - The server port Parameters: proxy - - True if logging into a proxy server. False otherwise. throws: CredentialsNotAvailableException - |
setProxyUsernamePassword | public void setProxyUsernamePassword(String username, String password)(Code) | | Sets the user and password to use for authentication on a proxy server.
Parameters: username - - the username to log in to the server. If domain name should be specified,then pass the username as domain\user . Parameters: password - - the password. |
setUsernamePassword | public void setUsernamePassword(String username, String password)(Code) | | Sets the user and password to use for authentication.
Parameters: username - - the username to log in to the server. If domain name should be specified,then pass the username as domain\user . Parameters: password - - the password. |
|
|