summaryrefslogtreecommitdiff
path: root/mmodules
diff options
context:
space:
mode:
authorPete Bentley <prb@google.com>2019-12-18 14:06:39 +0000
committerPete Bentley <prb@google.com>2020-01-08 12:46:07 +0000
commit6f0f8c1cee6a629ded601c6ff08b8461d50acb1e (patch)
treefede12e69c914040537eee5c9c4e8da3cf66a906 /mmodules
parent7a23698de2d48fcc806413ff758e17232c3739aa (diff)
Add a Core Platform API to change the default hostname verifier.
Allows vendor code in frameworks to install the strict instance of OKHostnameVerifier in a less brittle way than reflecting for it themselves. Bug: 144694112 Test: atest CtsLibcoreTestCases:org.apache.harmony.tests.javax.net.ssl.HostnameVerifierTest # With and without http://r.android.com/1174149 applied. Change-Id: Ife7a4644b632908b3c79e5c3f6ace709b43afd09
Diffstat (limited to 'mmodules')
-rw-r--r--mmodules/core_platform_api/api/platform/current-api.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/mmodules/core_platform_api/api/platform/current-api.txt b/mmodules/core_platform_api/api/platform/current-api.txt
index 28231569cb..9d67dc6ab5 100644
--- a/mmodules/core_platform_api/api/platform/current-api.txt
+++ b/mmodules/core_platform_api/api/platform/current-api.txt
@@ -925,6 +925,14 @@ package javax.crypto {
}
+package javax.net.ssl {
+
+ public abstract class HttpsURLConnection extends java.net.HttpURLConnection {
+ method public static javax.net.ssl.HostnameVerifier getStrictHostnameVerifier();
+ }
+
+}
+
package libcore.content.type {
public final class MimeMap {