summaryrefslogtreecommitdiffstats
path: root/core/java/android/webkit/WebView.java
diff options
context:
space:
mode:
authorSelim Gurun <sgurun@google.com>2014-03-26 14:10:28 -0700
committerSelim Gurun <sgurun@google.com>2014-04-24 14:27:33 -0700
commitb6aa97e0a0cd13846c148716fc0c7947422cea04 (patch)
tree54665ef060a403ddde24ba7ac1e12e78bb91f607 /core/java/android/webkit/WebView.java
parent10459a541171357a18ee897ffcfed0150600fb16 (diff)
downloadframeworks_base-b6aa97e0a0cd13846c148716fc0c7947422cea04.zip
frameworks_base-b6aa97e0a0cd13846c148716fc0c7947422cea04.tar.gz
frameworks_base-b6aa97e0a0cd13846c148716fc0c7947422cea04.tar.bz2
Add ClientCert support
Bug: 12983007 This is to add APIs for client certificates. Keep the APIs hidden until finalizing the design. Change-Id: I8a1e755e2c509cf821dff7c7df0ddd5270a5f79b
Diffstat (limited to 'core/java/android/webkit/WebView.java')
-rw-r--r--core/java/android/webkit/WebView.java19
1 files changed, 18 insertions, 1 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index d2e7324..cf9539e 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -485,7 +485,7 @@ public class WebView extends AbsoluteLayout
* @param privateBrowsing whether this WebView will be initialized in
* private mode
*
- * @deprecated Private browsing is no longer supported directly via
+ * @deprecated Private browsing is no longer supported directly via
* WebView and will be removed in a future release. Prefer using
* {@link WebSettings}, {@link WebViewDatabase}, {@link CookieManager}
* and {@link WebStorage} for fine-grained control of privacy data.
@@ -1476,6 +1476,23 @@ public class WebView extends AbsoluteLayout
}
/**
+ * Clears the client certificate preferences table stored in response
+ * to proceeding/cancelling client cert requests. Note that webview
+ * automatically clears these preferences when it receives a
+ * {@link KeyChain.ACTION_STORAGE_CHANGED}
+ *
+ * @param resultCallback A callback to be invoked when client certs are cleared.
+ *
+ * TODO(sgurun) unhide
+ * @hide
+ */
+ public void clearClientCertPreferences(ValueCallback<Void> resultCallback) {
+ checkThread();
+ if (DebugFlags.TRACE_API) Log.d(LOGTAG, "clearClientCertPreferences");
+ mProvider.clearClientCertPreferences(resultCallback);
+ }
+
+ /**
* Gets the WebBackForwardList for this WebView. This contains the
* back/forward list for use in querying each item in the history stack.
* This is a copy of the private WebBackForwardList so it contains only a