public final class CBLTrustManager extends AbstractCBLTrustManager
Constructor and Description |
---|
CBLTrustManager(X509Certificate pinnedServerCert,
boolean acceptOnlySelfSignedServerCertificate,
Fn.Consumer<List<Certificate>> serverCertsListener) |
Modifier and Type | Method and Description |
---|---|
List<X509Certificate> |
checkServerTrusted(X509Certificate[] chain,
String authType,
String host)
Hostname aware version of
AbstractCBLTrustManager.checkServerTrusted(X509Certificate[], String) . |
checkClientTrusted, checkServerTrusted, getAcceptedIssuers
public CBLTrustManager(@Nullable X509Certificate pinnedServerCert, boolean acceptOnlySelfSignedServerCertificate, @NonNull Fn.Consumer<List<Certificate>> serverCertsListener)
@Nullable public List<X509Certificate> checkServerTrusted(@Nullable X509Certificate[] chain, @Nullable String authType, @Nullable String host) throws CertificateException
AbstractCBLTrustManager.checkServerTrusted(X509Certificate[], String)
.
This method is called using introspection by conscrypt and android.net.http.X509TrustManagerExtensionsCertificateException