public final class Jdk9Platform extends Platform
| Modifier and Type | Method and Description |
|---|---|
static Jdk9Platform |
buildIfSupported() |
void |
configureTlsExtensions(SSLSocket sslSocket,
String hostname,
List<Protocol> protocols)
在
sslSocket上为route配置TLS扩展 |
String |
getSelectedProtocol(SSLSocket socket)
返回协商的协议,如果没有协商协议,则返回null
|
X509TrustManager |
trustManager(SSLSocketFactory sslSocketFactory)
管理哪些X509证书可用于对安全套接字的远程端进行身份验证。
决策可能基于可信的证书颁发机构、证书撤销列表、在线状态检查或其他方法
|
afterHandshake, alpnProtocolNames, buildCertificateChainCleaner, buildCertificateChainCleaner, buildTrustRootIndex, configureSslSocketFactory, connectSocket, get, getPrefix, getSSLContext, getStackTraceForCloseable, isCleartextTrafficPermitted, log, logCloseableLeak, toStringpublic static Jdk9Platform buildIfSupported()
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 X509TrustManager trustManager(SSLSocketFactory sslSocketFactory)
PlatformtrustManager in class PlatformsslSocketFactory - 安全套接字工厂Copyright © 2019. All rights reserved.