public class

HttpAuthHandler

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

Class Overview

HTTP authentication request that must be handled by the user interface. WebView creates the object and hands it to the current WebViewClient, which must call either proceed(String, String) or cancel().

Summary

Public Methods
void cancel()
Cancel the authorization request.
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 ()

Since: API Level 1

Cancel the authorization request.

public void proceed (String username, String password)

Since: API Level 1

Proceed with the authorization with the given credentials.

public boolean useHttpAuthUsernamePassword ()

Since: API Level 1

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