summaryrefslogtreecommitdiff
path: root/core/java/android/webkit/WebViewClient.java
diff options
context:
space:
mode:
authorSelim Gurun <sgurun@android.com>2014-04-25 01:19:31 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-04-25 01:19:31 +0000
commitda5c532573bcdd1698822384e9e20d7e64195987 (patch)
tree3a839edc276227b14d054edbae06acb734fa7943 /core/java/android/webkit/WebViewClient.java
parent87cfaca4760af82fdf85b8a740eac9b79564ee2d (diff)
parent7466e3bbbd13b563e1a5adcc537ea0f132045038 (diff)
am 7466e3bb: am e3fc3073: am 8c2d70f5: Merge "Add a stub for forgotten callback to fix master-gpl."
* commit '7466e3bbbd13b563e1a5adcc537ea0f132045038': Add a stub for forgotten callback to fix master-gpl.
Diffstat (limited to 'core/java/android/webkit/WebViewClient.java')
-rw-r--r--core/java/android/webkit/WebViewClient.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebViewClient.java b/core/java/android/webkit/WebViewClient.java
index 688c2518bf67..789156f74a2d 100644
--- a/core/java/android/webkit/WebViewClient.java
+++ b/core/java/android/webkit/WebViewClient.java
@@ -206,6 +206,30 @@ public class WebViewClient {
handler.cancel();
}
+ /**
+ * Notify the host application to handle a SSL client certificate
+ * request. The host application is responsible for showing the UI
+ * if desired and providing the keys. There are three ways to
+ * respond: proceed(), cancel() or ignore(). Webview remembers the
+ * response if proceed() or cancel() is called and does not
+ * call onReceivedClientCertRequest() again for the same host and port
+ * pair. Webview does not remember the response if ignore() is called.
+ *
+ * This method is called on the UI thread. During the callback, the
+ * connection is suspended.
+ *
+ * The default behavior is to cancel, returning no client certificate.
+ *
+ * @param view The WebView that is initiating the callback
+ * @param request An instance of a {@link ClientCertRequest}
+ *
+ * TODO(sgurun) unhide
+ * @hide
+ */
+ public void onReceivedClientCertRequest(WebView view, ClientCertRequest request) {
+ request.cancel();
+ }
+
/**
* Notify the host application to handle a SSL client certificate
* request. The host application is responsible for showing the UI