Class JdkPlatform
java.lang.Object
org.miaixz.bus.http.accord.platform.Platform
org.miaixz.bus.http.accord.platform.JdkPlatform
-
Method Summary
Modifier and TypeMethodDescriptionstatic JdkPlatformvoidconfigureTlsExtensions(SSLSocket sslSocket, String hostname, List<org.miaixz.bus.core.net.Protocol> protocols) 在sslSocket上为route配置TLS扩展getSelectedProtocol(SSLSocket socket) 返回协商的协议,如果没有协商协议,则返回nulltrustManager(SSLSocketFactory sslSocketFactory) 管理哪些X509证书可用于对安全套接字的远程端进行身份验证。Methods inherited from class org.miaixz.bus.http.accord.platform.Platform
afterHandshake, alpnProtocolNames, buildCertificateChainCleaner, buildCertificateChainCleaner, buildTrustRootIndex, configureSslSocketFactory, connectSocket, get, getPrefix, getStackTraceForCloseable, isCleartextTrafficPermitted, logCloseableLeak, toString
-
Method Details
-
buildIfSupported
-
configureTlsExtensions
public void configureTlsExtensions(SSLSocket sslSocket, String hostname, List<org.miaixz.bus.core.net.Protocol> protocols) Description copied from class:Platform在sslSocket上为route配置TLS扩展- Overrides:
configureTlsExtensionsin classPlatform- Parameters:
sslSocket- 套接字信息hostname- 客户端握手不为空;服务器端握手为空.protocols- 服务协议
-
getSelectedProtocol
Description copied from class:Platform返回协商的协议,如果没有协商协议,则返回null- Overrides:
getSelectedProtocolin classPlatform- Parameters:
socket- 套接字- Returns:
- 协议
-
trustManager
Description copied from class:Platform管理哪些X509证书可用于对安全套接字的远程端进行身份验证。 决策可能基于可信的证书颁发机构、证书撤销列表、在线状态检查或其他方法- Overrides:
trustManagerin classPlatform- Parameters:
sslSocketFactory- 安全套接字工厂- Returns:
- 信任证书管理器
-