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