final class Jdk9Platform extends Platform
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.reflect.Method |
getProtocolMethod |
(package private) java.lang.reflect.Method |
setProtocolMethod |
Constructor and Description |
---|
Jdk9Platform(java.lang.reflect.Method setProtocolMethod,
java.lang.reflect.Method getProtocolMethod) |
Modifier and Type | Method and Description |
---|---|
static Jdk9Platform |
buildIfSupported() |
void |
configureTlsExtensions(javax.net.ssl.SSLSocket sslSocket,
java.lang.String hostname,
java.util.List<Protocol> protocols)
Configure TLS extensions on
sslSocket for route . |
java.lang.String |
getSelectedProtocol(javax.net.ssl.SSLSocket socket)
Returns the negotiated protocol, or null if no protocol was negotiated.
|
javax.net.ssl.X509TrustManager |
trustManager(javax.net.ssl.SSLSocketFactory sslSocketFactory) |
afterHandshake, alpnProtocolNames, buildCertificateChainCleaner, buildCertificateChainCleaner, buildTrustRootIndex, concatLengthPrefixed, configureSslSocketFactory, connectSocket, get, getPrefix, getSSLContext, getStackTraceForCloseable, isCleartextTrafficPermitted, isConscryptPreferred, log, logCloseableLeak, readFieldOrNull, toString
final java.lang.reflect.Method setProtocolMethod
final java.lang.reflect.Method getProtocolMethod
Jdk9Platform(java.lang.reflect.Method setProtocolMethod, java.lang.reflect.Method getProtocolMethod)
public void configureTlsExtensions(javax.net.ssl.SSLSocket sslSocket, java.lang.String hostname, java.util.List<Protocol> protocols)
Platform
sslSocket
for route
.configureTlsExtensions
in class Platform
hostname
- non-null for client-side handshakes; null for server-side handshakes.@Nullable public java.lang.String getSelectedProtocol(javax.net.ssl.SSLSocket socket)
Platform
getSelectedProtocol
in class Platform
public javax.net.ssl.X509TrustManager trustManager(javax.net.ssl.SSLSocketFactory sslSocketFactory)
trustManager
in class Platform
public static Jdk9Platform buildIfSupported()