Class CBLTrustManager

  • All Implemented Interfaces:
    javax.net.ssl.TrustManager, javax.net.ssl.X509TrustManager

    public final class CBLTrustManager
    extends AbstractCBLTrustManager
    • Constructor Detail

      • CBLTrustManager

        public CBLTrustManager​(@Nullable
                               java.security.cert.X509Certificate pinnedServerCert,
                               boolean acceptOnlySelfSignedServerCertificate,
                               @NonNull
                               Fn.Consumer<java.util.List<java.security.cert.Certificate>> serverCertsListener)
    • Method Detail

      • checkServerTrusted

        @Nullable
        public java.util.List<java.security.cert.X509Certificate> checkServerTrusted​(@Nullable
                                                                                     java.security.cert.X509Certificate[] chain,
                                                                                     @Nullable
                                                                                     java.lang.String authType,
                                                                                     @Nullable
                                                                                     java.lang.String host)
                                                                              throws java.security.cert.CertificateException
        Hostname aware version of AbstractCBLTrustManager.checkServerTrusted(X509Certificate[], String). This method is called using introspection by conscrypt and android.net.http.X509TrustManagerExtensions
        Throws:
        java.security.cert.CertificateException