setHandshakeApplicationProtocolSelector API (which requires Java 8 for
compilation, due to the use of BiFunction).
| Modifier and Type | Field and Description |
|---|---|
| private BiFunction |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv | |
| pack-priv | Java8FileDescriptorSocket(String hostname, int port, InetAddress clientAddress, int clientPort, SSLParametersImpl sslParameters)
|
| pack-priv | Java8FileDescriptorSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort, SSLParametersImpl sslParameters)
|
| pack-priv | Java8FileDescriptorSocket(Socket socket, String hostname, int port, boolean autoClose, SSLParametersImpl sslParameters)
|
| Modifier and Type | Method and Description |
|---|---|
| public BiFunction | getHandshakeApplicationProtocolSelector()
Overrides javax. |
| public void | setHandshakeApplicationProtocolSelector(final BiFunction<SSLSocket, List<String>, String>
the callback function, or null to de-register. selector)Overrides javax. |
| private static ApplicationProtocolSelector |
| selector | back to summary |
|---|---|
| private BiFunction<SSLSocket, List<String>, String> selector | |
| Java8FileDescriptorSocket | back to summary |
|---|---|
| pack-priv Java8FileDescriptorSocket(SSLParametersImpl sslParameters) throws IOException | |
| Java8FileDescriptorSocket | back to summary |
|---|---|
| pack-priv Java8FileDescriptorSocket(String hostname, int port, SSLParametersImpl sslParameters) throws IOException | |
| Java8FileDescriptorSocket | back to summary |
|---|---|
| pack-priv Java8FileDescriptorSocket(InetAddress address, int port, SSLParametersImpl sslParameters) throws IOException | |
| Java8FileDescriptorSocket | back to summary |
|---|---|
| pack-priv Java8FileDescriptorSocket(String hostname, int port, InetAddress clientAddress, int clientPort, SSLParametersImpl sslParameters) throws IOException | |
| Java8FileDescriptorSocket | back to summary |
|---|---|
| pack-priv Java8FileDescriptorSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort, SSLParametersImpl sslParameters) throws IOException | |
| Java8FileDescriptorSocket | back to summary |
|---|---|
| pack-priv Java8FileDescriptorSocket(Socket socket, String hostname, int port, boolean autoClose, SSLParametersImpl sslParameters) throws IOException | |
| getHandshakeApplicationProtocolSelector | back to summary |
|---|---|
| public BiFunction Overrides javax. Doc from javax. Retrieves the callback function that selects an application protocol
value during a SSL/TLS/DTLS handshake.
See
| |
| setHandshakeApplicationProtocolSelector | back to summary |
|---|---|
| public void setHandshakeApplicationProtocolSelector(final BiFunction<SSLSocket, List<String>, String> selector) Overrides javax. Doc from javax. Registers a callback function that selects an application protocol
value for a SSL/TLS/DTLS handshake.
The function overrides any values supplied using
For example, the following call registers a callback function that examines the TLS handshake parameters and selects an application protocol name:
| |
| toApplicationProtocolSelector | back to summary |
|---|---|
| private static ApplicationProtocolSelector toApplicationProtocolSelector(final BiFunction<SSLSocket, List<String>, String> selector) | |