Class CBLTrustManager
- java.lang.Object
-
- com.couchbase.lite.internal.replicator.AbstractCBLTrustManager
-
- com.couchbase.lite.internal.replicator.CBLTrustManager
-
- All Implemented Interfaces:
javax.net.ssl.TrustManager
,javax.net.ssl.X509TrustManager
public final class CBLTrustManager extends AbstractCBLTrustManager
-
-
Constructor Summary
Constructors Constructor Description CBLTrustManager(java.security.cert.X509Certificate pinnedServerCert, boolean acceptOnlySelfSignedServerCertificate, Fn.Consumer<java.util.List<java.security.cert.Certificate>> serverCertsListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.security.cert.X509Certificate>
checkServerTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType, java.lang.String host)
Hostname aware version ofAbstractCBLTrustManager.checkServerTrusted(X509Certificate[], String)
.-
Methods inherited from class com.couchbase.lite.internal.replicator.AbstractCBLTrustManager
checkClientTrusted, checkServerTrusted, getAcceptedIssuers
-
-
-
-
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 ofAbstractCBLTrustManager.checkServerTrusted(X509Certificate[], String)
. This method is called using introspection by conscrypt and android.net.http.X509TrustManagerExtensions- Throws:
java.security.cert.CertificateException
-
-