org.apache.commons.httpclient.auth.CredentialsProvider
public class CommandLineCredentialsProvider extends Object implements org.apache.commons.httpclient.auth.CredentialsProvider
Constructor | Description |
---|---|
CommandLineCredentialsProvider() |
Modifier and Type | Method | Description |
---|---|---|
org.apache.commons.httpclient.Credentials |
getCredentials(org.apache.commons.httpclient.auth.AuthScheme authscheme,
String host,
int port,
boolean proxy) |
Implementation method for the CredentialsProvider interface.
|
public org.apache.commons.httpclient.Credentials getCredentials(org.apache.commons.httpclient.auth.AuthScheme authscheme, String host, int port, boolean proxy) throws org.apache.commons.httpclient.auth.CredentialsNotAvailableException
Based on sample code: InteractiveAuthenticationExample
getCredentials
in interface org.apache.commons.httpclient.auth.CredentialsProvider
org.apache.commons.httpclient.auth.CredentialsNotAvailableException