ApplicationProtocolSelector

Server-side selector for the ALPN protocol. This is a backward-compatibility shim for Java 9's new {@code setHandshakeApplicationProtocolSelector} API, which takes a {@code BiFunction} (available in Java 8+). This interface is provided to support protocol selection in Java < 8.

version(WITH_HUNT_SECURITY)
abstract
class ApplicationProtocolSelector {}

Members

Functions

selectApplicationProtocol
string selectApplicationProtocol(SSLEngine engine, string[] protocols)

Selects the appropriate ALPN protocol.

Meta