public abstract class AbstractCBLTrustManager extends Object implements X509TrustManager
Constructor and Description |
---|
AbstractCBLTrustManager(X509Certificate pinnedServerCert,
boolean acceptOnlySelfSignedServerCertificate,
Fn.Consumer<List<Certificate>> serverCertsListener) |
Modifier and Type | Method and Description |
---|---|
void |
checkClientTrusted(X509Certificate[] chain,
String authType) |
void |
checkServerTrusted(X509Certificate[] chain,
String authType) |
X509Certificate[] |
getAcceptedIssuers() |
public AbstractCBLTrustManager(@Nullable X509Certificate pinnedServerCert, boolean acceptOnlySelfSignedServerCertificate, @NonNull Fn.Consumer<List<Certificate>> serverCertsListener)
@NonNull public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers
in interface X509TrustManager
public void checkClientTrusted(@Nullable X509Certificate[] chain, @Nullable String authType)
checkClientTrusted
in interface X509TrustManager
public void checkServerTrusted(@Nullable X509Certificate[] chain, @Nullable String authType) throws CertificateException
checkServerTrusted
in interface X509TrustManager
CertificateException