public class CommandLineCredentialsProvider
extends java.lang.Object
implements org.apache.http.client.CredentialsProvider
| Constructor and Description |
|---|
CommandLineCredentialsProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear credentials.
|
org.apache.http.auth.Credentials |
getCredentials(org.apache.http.auth.AuthScope scope)
Implementation method for the CredentialsProvider interface.
|
void |
setCredentials(org.apache.http.auth.AuthScope authscope,
org.apache.http.auth.Credentials credentials) |
public void setCredentials(org.apache.http.auth.AuthScope authscope,
org.apache.http.auth.Credentials credentials)
setCredentials in interface org.apache.http.client.CredentialsProviderpublic void clear()
clear in interface org.apache.http.client.CredentialsProviderpublic org.apache.http.auth.Credentials getCredentials(org.apache.http.auth.AuthScope scope)
Based on sample code: InteractiveAuthenticationExample
getCredentials in interface org.apache.http.client.CredentialsProvider