what-the-bank/sources/okhttp3/internal/platform/android/SocketAdapter.java

39 lines
1.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package okhttp3.internal.platform.android;
import java.util.List;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import javax.net.ssl.X509TrustManager;
import o.C14957gcv;
import okhttp3.Protocol;
/* loaded from: classes.dex */
public interface SocketAdapter {
void configureTlsExtensions(SSLSocket sSLSocket, String str, List<? extends Protocol> list);
String getSelectedProtocol(SSLSocket sSLSocket);
boolean isSupported();
boolean matchesSocket(SSLSocket sSLSocket);
boolean matchesSocketFactory(SSLSocketFactory sSLSocketFactory);
X509TrustManager trustManager(SSLSocketFactory sSLSocketFactory);
/* loaded from: classes6.dex */
public static final class DefaultImpls {
public static X509TrustManager trustManager(SocketAdapter socketAdapter, SSLSocketFactory sSLSocketFactory) {
C14957gcv.e(socketAdapter, "");
C14957gcv.e(sSLSocketFactory, "");
return null;
}
public static boolean matchesSocketFactory(SocketAdapter socketAdapter, SSLSocketFactory sSLSocketFactory) {
C14957gcv.e(socketAdapter, "");
C14957gcv.e(sSLSocketFactory, "");
return false;
}
}
}