Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63501117 authored by William Luh's avatar William Luh
Browse files

Revert "Expose new API for querying whether a certificate was user added."

This reverts commit 60b96502.

Change-Id: Ie1c2ee4c983c4d6b0c086f252a191b3c60e50b9c
parent 60b96502
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);
  }
}
+0 −13
Original line number Diff line number Diff line
@@ -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);
    }
}