HttpAuthHandler
public
class
HttpAuthHandler
extends Handler
| java.lang.Object | ||
| ↳ | android.os.Handler | |
| ↳ | android.webkit.HttpAuthHandler | |
Represents a request for HTTP authentication. Instances of this class are
created by the WebView and passed to
onReceivedHttpAuthRequest(WebView, HttpAuthHandler, String, String). The host application must
call either proceed(String, String) or cancel() to set the WebView's
response to the request.
Summary
Public methods | |
|---|---|
void
|
cancel()
Instructs the WebView to cancel the authentication request. |
void
|
proceed(String username, String password)
Instructs the WebView to proceed with the authentication with the given credentials. |
boolean
|
useHttpAuthUsernamePassword()
Gets whether the credentials stored for the current host (i.e. |
Inherited methods | |
|---|---|
android.os.Handler
| |
java.lang.Object
| |
Public methods
cancel
void cancel ()
Instructs the WebView to cancel the authentication request.
proceed
void proceed (String username, String password)
Instructs the WebView to proceed with the authentication with the given
credentials. Credentials for use with this method can be retrieved from
the WebView's store using getHttpAuthUsernamePassword(String, String).
| Parameters | |
|---|---|
username |
String |
password |
String |
useHttpAuthUsernamePassword
boolean useHttpAuthUsernamePassword ()
Gets whether the credentials stored for the current host (i.e. the host
for which onReceivedHttpAuthRequest(WebView, HttpAuthHandler, String, String) was called)
are suitable for use. Credentials are not suitable if they have
previously been rejected by the server for the current request.
| Returns | |
|---|---|
boolean |
whether the credentials are suitable for use |
Annotations
Interfaces
Classes
- ClientCertRequest
- ConsoleMessage
- CookieManager
- CookieSyncManager
- DateSorter
- GeolocationPermissions
- HttpAuthHandler
- JsPromptResult
- JsResult
- MimeTypeMap
- PermissionRequest
- RenderProcessGoneDetail
- ServiceWorkerClient
- ServiceWorkerController
- ServiceWorkerWebSettings
- SslErrorHandler
- URLUtil
- WebBackForwardList
- WebChromeClient
- WebChromeClient.FileChooserParams
- WebHistoryItem
- WebIconDatabase
- WebMessage
- WebMessagePort
- WebMessagePort.WebMessageCallback
- WebResourceError
- WebResourceResponse
- WebSettings
- WebStorage
- WebStorage.Origin
- WebView
- WebView.HitTestResult
- WebView.VisualStateCallback
- WebView.WebViewTransport
- WebViewClient
- WebViewDatabase
- WebViewFragment
Enums


