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.
|
void |
unsupported()
Callback invoked to let the client application know that
the server does not support ALPN.
|
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.
null
or empty, the ALPN extension is not sentvoid unsupported()
void selected(String protocol) throws SSLException
Callback invoked to let the client application know the protocol chosen by the server.
The implementation may throw an exception to indicate
that the protocol selected by the server is not acceptable,
causing the connection to be closed with a TLS alert of
type no_application_protocol(120)
.
protocol
- the protocol selected by the server.SSLException
- if the protocol negotiation failed.Copyright © 1995–2018 Mort Bay Consulting. All rights reserved.