public class AndroidPlatform extends Platform
afterHandshake, alpnProtocolNames, buildCertificateChainCleaner, configureSslSocketFactory, get, getPrefix, toStringpublic static Platform buildIfSupported()
public void connectSocket(Socket socket, InetSocketAddress address, int connectTimeout) throws IOException
connectSocket in class PlatformIOExceptionprotected X509TrustManager trustManager(SSLSocketFactory sslSocketFactory)
PlatformtrustManager in class PlatformsslSocketFactory - 安全套接字工厂public void configureTlsExtensions(SSLSocket sslSocket, String hostname, List<Protocol> protocols)
PlatformsslSocket上为route配置TLS扩展configureTlsExtensions in class PlatformsslSocket - 套接字信息hostname - 客户端握手不为空;服务器端握手为空.protocols - 服务协议public String getSelectedProtocol(SSLSocket socket)
PlatformgetSelectedProtocol in class Platformsocket - 套接字public Object getStackTraceForCloseable(String closer)
PlatformCloseable与Platform.logCloseableLeak(String, Object)getStackTraceForCloseable in class Platformcloser - 闭合器public void logCloseableLeak(String message, Object stackTrace)
logCloseableLeak in class Platformpublic boolean isCleartextTrafficPermitted(String hostname)
isCleartextTrafficPermitted in class Platformpublic CertificateChainCleaner buildCertificateChainCleaner(X509TrustManager trustManager)
buildCertificateChainCleaner in class Platformpublic TrustRootIndex buildTrustRootIndex(X509TrustManager trustManager)
buildTrustRootIndex in class Platformpublic SSLContext getSSLContext()
getSSLContext in class PlatformCopyright © 2019. All rights reserved.