class JdkWithJettyBootPlatform extends Platform
org.mortbay.jetty.alpn/alpn-boot
in the boot class path.Modifier and Type | Class and Description |
---|---|
private static class |
JdkWithJettyBootPlatform.JettyNegoProvider
Handle the methods of ALPN's ClientProvider and ServerProvider without a compile-time
dependency on those interfaces.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<?> |
clientProviderClass |
private java.lang.reflect.Method |
getMethod |
private java.lang.reflect.Method |
putMethod |
private java.lang.reflect.Method |
removeMethod |
private java.lang.Class<?> |
serverProviderClass |
Constructor and Description |
---|
JdkWithJettyBootPlatform(java.lang.reflect.Method putMethod,
java.lang.reflect.Method getMethod,
java.lang.reflect.Method removeMethod,
java.lang.Class<?> clientProviderClass,
java.lang.Class<?> serverProviderClass) |
Modifier and Type | Method and Description |
---|---|
void |
afterHandshake(javax.net.ssl.SSLSocket sslSocket)
Called after the TLS handshake to release resources allocated by
Platform.configureTlsExtensions(javax.net.ssl.SSLSocket, java.lang.String, java.util.List<okhttp3.Protocol>) . |
static Platform |
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.
|
alpnProtocolNames, buildCertificateChainCleaner, buildCertificateChainCleaner, buildTrustRootIndex, concatLengthPrefixed, connectSocket, get, getPrefix, getSSLContext, getStackTraceForCloseable, isCleartextTrafficPermitted, isConscryptPreferred, log, logCloseableLeak, readFieldOrNull, trustManager
private final java.lang.reflect.Method putMethod
private final java.lang.reflect.Method getMethod
private final java.lang.reflect.Method removeMethod
private final java.lang.Class<?> clientProviderClass
private final java.lang.Class<?> serverProviderClass
JdkWithJettyBootPlatform(java.lang.reflect.Method putMethod, java.lang.reflect.Method getMethod, java.lang.reflect.Method removeMethod, java.lang.Class<?> clientProviderClass, java.lang.Class<?> serverProviderClass)
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.public void afterHandshake(javax.net.ssl.SSLSocket sslSocket)
Platform
Platform.configureTlsExtensions(javax.net.ssl.SSLSocket, java.lang.String, java.util.List<okhttp3.Protocol>)
.afterHandshake
in class Platform
@Nullable public java.lang.String getSelectedProtocol(javax.net.ssl.SSLSocket socket)
Platform
getSelectedProtocol
in class Platform
public static Platform buildIfSupported()