Package org.jets3t.apps.synchronize
Class CommandLineCredentialsProvider
- java.lang.Object
-
- org.jets3t.apps.synchronize.CommandLineCredentialsProvider
-
- All Implemented Interfaces:
org.apache.http.client.CredentialsProvider
public class CommandLineCredentialsProvider extends Object implements org.apache.http.client.CredentialsProvider
Prompts for the user to enter HTTP Proxy authentication credentials via the command line.- Author:
- James Murty
-
-
Constructor Summary
Constructors Constructor Description CommandLineCredentialsProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear credentials.org.apache.http.auth.CredentialsgetCredentials(org.apache.http.auth.AuthScope scope)Implementation method for the CredentialsProvider interface.voidsetCredentials(org.apache.http.auth.AuthScope authscope, org.apache.http.auth.Credentials credentials)
-
-
-
Method Detail
-
setCredentials
public void setCredentials(org.apache.http.auth.AuthScope authscope, org.apache.http.auth.Credentials credentials)- Specified by:
setCredentialsin interfaceorg.apache.http.client.CredentialsProvider
-
clear
public void clear()
Clear credentials.- Specified by:
clearin interfaceorg.apache.http.client.CredentialsProvider
-
getCredentials
public org.apache.http.auth.Credentials getCredentials(org.apache.http.auth.AuthScope scope)
Implementation method for the CredentialsProvider interface.Based on sample code: InteractiveAuthenticationExample
- Specified by:
getCredentialsin interfaceorg.apache.http.client.CredentialsProvider
-
-