Android
android.webkit
public class

android.webkit.HttpAuthHandler

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

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()
Methods inherited from class android.os.Handler
Methods inherited from class java.lang.Object

Details

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)
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56