public interface AlpnServerNegotiator
Called during the SSL handshake when the current SSLEngine
's
getUseClientMode
has returned false
. Implementations must be
thread safe. For HTTP/2, implementations must recognize "h2" and "http/1.1"
protocol identifiers, without the quotes.
Modifier and Type | Method and Description |
---|---|
String |
selectProtocol(SSLEngine sslEngine,
String[] clientProtocols)
Take the necessary actions to declare support for the above protocols
and return the selected protocol.
|
String selectProtocol(SSLEngine sslEngine, String[] clientProtocols)
Take the necessary actions to declare support for the above protocols and return the selected protocol.
sslEngine
- the SSLEngine
for this connection.clientProtocols
- the available client protocolsCopyright © 2024 Oracle Corporation. All rights reserved.