diff options
| author | 2013-11-19 01:28:08 +0000 | |
|---|---|---|
| committer | 2013-11-19 01:28:08 +0000 | |
| commit | 6f1459a57343ce7b8045297c8cee733b6f2ab41a (patch) | |
| tree | 62fca63bccde7f88b20772a76005118416300fbc | |
| parent | e6a408ed31a7d1fb8ace6b80487d179b2f085fd3 (diff) | |
| parent | 635011173ebaa6cc35d1fca82276197cad866ba2 (diff) | |
Merge "Revert "Expose new API for querying whether a certificate was user added.""
| -rw-r--r-- | api/current.txt | 1 | ||||
| -rw-r--r-- | core/java/android/net/http/X509TrustManagerExtensions.java | 13 |
2 files changed, 0 insertions, 14 deletions
diff --git a/api/current.txt b/api/current.txt index f8768bca8f9d..2845af1a7b83 100644 --- a/api/current.txt +++ b/api/current.txt @@ -14663,7 +14663,6 @@ package android.net.http { public class X509TrustManagerExtensions { ctor public X509TrustManagerExtensions(javax.net.ssl.X509TrustManager) throws java.lang.IllegalArgumentException; method public java.util.List<java.security.cert.X509Certificate> checkServerTrusted(java.security.cert.X509Certificate[], java.lang.String, java.lang.String) throws java.security.cert.CertificateException; - method public boolean isUserAddedCertificate(java.security.cert.X509Certificate); } } diff --git a/core/java/android/net/http/X509TrustManagerExtensions.java b/core/java/android/net/http/X509TrustManagerExtensions.java index 025b3c4441ba..cfe5f27b9e86 100644 --- a/core/java/android/net/http/X509TrustManagerExtensions.java +++ b/core/java/android/net/http/X509TrustManagerExtensions.java @@ -63,17 +63,4 @@ public class X509TrustManagerExtensions { String host) throws CertificateException { return mDelegate.checkServerTrusted(chain, authType, host); } - - /** - * Checks whether a CA certificate is added by an user. - * - * <p>Since {@link checkServerTrusted} allows its parameter {@link chain} to chain up to user- - * added CA certificates, this method can be used to perform additional policies for user-added - * CA certificates. - * - * @return true to indicate that the certificate was added by the user, false otherwise. - */ - public boolean isUserAddedCertificate(X509Certificate cert) { - return mDelegate.isUserAddedCertificate(cert); - } } |