HTTPClient
Class SimpleAuthPrompt

java.lang.Object
  |
  +--HTTPClient.SimpleAuthPrompt
All Implemented Interfaces:
AuthorizationPrompter

class SimpleAuthPrompt
extends java.lang.Object
implements AuthorizationPrompter

This class implements a simple command line prompter that request username and password used for the "basic" and "digest" authentication schemes.


Constructor Summary
(package private) SimpleAuthPrompt()
           
 
Method Summary
TypeMethod
(package private) static boolean canUseCLPrompt()
           
 NVPair getUsernamePassword(AuthorizationInfo challenge, boolean forProxy)
          the method called by DefaultAuthHandler.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleAuthPrompt

SimpleAuthPrompt()
Method Detail

getUsernamePassword

public NVPair getUsernamePassword(AuthorizationInfo challenge,
                                  boolean forProxy)
the method called by DefaultAuthHandler.
Specified by:
getUsernamePassword in interface AuthorizationPrompter
Returns:
the username/password pair

canUseCLPrompt

static boolean canUseCLPrompt()
Returns:
true for Unix's and VMS