public class

HttpAuthHandler

extends Handler
java.lang.Object
   ↳ android.os.Handler
     ↳ android.webkit.HttpAuthHandler

Class Overview

HTTP authentication handler: local handler that takes care of HTTP authentication requests. This class is passed as a parameter to BrowserCallback.displayHttpAuthDialog and is meant to receive the user's response.

Summary

Public Methods
void cancel()
Cancel the authorization request
void handleMessage(Message msg)
Subclasses must implement this to receive messages.
void proceed(String username, String password)
Proceed with the authorization with the given credentials
boolean useHttpAuthUsernamePassword()
[Expand]
Inherited Methods
From class android.os.Handler
From class java.lang.Object

Public Methods

public void cancel ()

Cancel the authorization request

public void handleMessage (Message msg)

Subclasses must implement this to receive messages.

public void proceed (String username, String password)

Proceed with the authorization with the given credentials

Parameters
username The username to use for authentication
password The password to use for authentication

public boolean useHttpAuthUsernamePassword ()

Returns
  • True if we can use user credentials on record (ie, if we did not fail trying to use them last time)