ALPNProviderpublic class JDK9AlpnProvider extends Object implements ALPNProvider
Not a proper open listener as such, but more a mechanism for selecting between them
| Modifier and Type | Class | Description |
|---|---|---|
static class |
JDK9AlpnProvider.JDK9ALPNMethods |
| Modifier and Type | Field | Description |
|---|---|---|
static JDK9AlpnProvider.JDK9ALPNMethods |
JDK_9_ALPN_METHODS |
| Constructor | Description |
|---|---|
JDK9AlpnProvider() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getPriority() |
|
String |
getSelectedProtocol(SSLEngine engine) |
Gets the selected ALPN protocol, of null if none was selected.
|
boolean |
isEnabled(SSLEngine sslEngine) |
|
SSLEngine |
setProtocols(SSLEngine engine,
String[] protocols) |
Sets the SSL protocols, and potentially wraps the SSLEngine
|
String |
toString() |
public static final JDK9AlpnProvider.JDK9ALPNMethods JDK_9_ALPN_METHODS
public boolean isEnabled(SSLEngine sslEngine)
isEnabled in interface ALPNProviderpublic SSLEngine setProtocols(SSLEngine engine, String[] protocols)
ALPNProvidersetProtocols in interface ALPNProviderengine - The original engineprotocols - The protocolspublic String getSelectedProtocol(SSLEngine engine)
ALPNProvidergetSelectedProtocol in interface ALPNProviderengine - The SSL Enginepublic int getPriority()
getPriority in interface ALPNProviderCopyright © 2018. All rights reserved.