public class ConscryptPlatform extends Platform
Requires org.conscrypt:conscrypt-openjdk-uber on the classpath.
| 限定符和类型 | 方法和说明 |
|---|---|
static ConscryptPlatform |
buildIfSupported() |
void |
configureSslSocketFactory(SSLSocketFactory socketFactory) |
void |
configureTlsExtensions(SSLSocket sslSocket,
String hostname,
List<Protocol> protocols)
Configure TLS extensions on
sslSocket for route. |
String |
getSelectedProtocol(SSLSocket sslSocket)
Returns the negotiated protocol, or null if no protocol was negotiated.
|
SSLContext |
getSSLContext() |
X509TrustManager |
trustManager(SSLSocketFactory sslSocketFactory) |
afterHandshake, alpnProtocolNames, buildCertificateChainCleaner, buildCertificateChainCleaner, buildTrustRootIndex, connectSocket, get, getPrefix, getStackTraceForCloseable, isAndroid, isCleartextTrafficPermitted, isConscryptPreferred, log, logCloseableLeak, toStringpublic static ConscryptPlatform buildIfSupported()
@Nullable public X509TrustManager trustManager(SSLSocketFactory sslSocketFactory)
public void configureTlsExtensions(SSLSocket sslSocket, String hostname, List<Protocol> protocols) throws IOException
PlatformsslSocket for route.configureTlsExtensions 在类中 Platformhostname - non-null for client-side handshakes; null for server-side handshakes.IOException@Nullable public String getSelectedProtocol(SSLSocket sslSocket)
PlatformgetSelectedProtocol 在类中 Platformpublic SSLContext getSSLContext()
getSSLContext 在类中 Platformpublic void configureSslSocketFactory(SSLSocketFactory socketFactory)
configureSslSocketFactory 在类中 PlatformCopyright © 2025. All rights reserved.