类 ConscryptPlatform
java.lang.Object
com.lark.oapi.okhttp.internal.platform.Platform
com.lark.oapi.okhttp.internal.platform.ConscryptPlatform
Platform using Conscrypt (conscrypt.org) if installed as the first Security Provider.
Requires org.conscrypt:conscrypt-openjdk-uber on the classpath.
-
字段概要
-
方法概要
修饰符和类型方法说明static ConscryptPlatformvoidconfigureSslSocketFactory(SSLSocketFactory socketFactory) voidconfigureTlsExtensions(SSLSocket sslSocket, String hostname, List<Protocol> protocols) Configure TLS extensions onsslSocketforroute.getSelectedProtocol(SSLSocket sslSocket) Returns the negotiated protocol, or null if no protocol was negotiated.trustManager(SSLSocketFactory sslSocketFactory) 从类继承的方法 com.lark.oapi.okhttp.internal.platform.Platform
afterHandshake, alpnProtocolNames, buildCertificateChainCleaner, buildCertificateChainCleaner, buildTrustRootIndex, connectSocket, get, getPrefix, getStackTraceForCloseable, isAndroid, isCleartextTrafficPermitted, isConscryptPreferred, log, logCloseableLeak, toString
-
方法详细资料
-
buildIfSupported
-
trustManager
-
configureTlsExtensions
public void configureTlsExtensions(SSLSocket sslSocket, String hostname, List<Protocol> protocols) throws IOException 从类复制的说明:PlatformConfigure TLS extensions onsslSocketforroute.- 覆盖:
configureTlsExtensions在类中Platform- 参数:
hostname- non-null for client-side handshakes; null for server-side handshakes.- 抛出:
IOException
-
getSelectedProtocol
从类复制的说明:PlatformReturns the negotiated protocol, or null if no protocol was negotiated.- 覆盖:
getSelectedProtocol在类中Platform
-
getSSLContext
- 覆盖:
getSSLContext在类中Platform
-
configureSslSocketFactory
- 覆盖:
configureSslSocketFactory在类中Platform
-