public static interface ALPN.ClientProvider extends ALPN.Provider
Modifier and Type | Method and Description |
---|---|
List<String> |
protocols()
Callback invoked to let the implementation know the list
of protocols that should be added to the ALPN extension in
a ClientHello TLS message.
|
void |
selected(String protocol)
Callback invoked to let the client application know
the protocol chosen by the server.
|
boolean |
supports()
Callback invoked to let the implementation know whether an
ALPN extension should be added to a ClientHello TLS message.
|
void |
unsupported()
Callback invoked to let the client application know that
the server does not support ALPN.
|
boolean supports()
List<String> protocols()
supports()
returned true.void unsupported()
void selected(String protocol)
protocol
- the protocol selected by the serverCopyright © 2018. All rights reserved.