public static interface NextProtoNego.ClientProvider extends NextProtoNego.Provider
The client-side provider interface that applications must implement to interact with the negotiation of the next protocol.
| Modifier and Type | Method and Description |
|---|---|
String |
selectProtocol(List<String> protocols)
Callback invoked to let the application select a protocol
among the ones sent by the server.
|
boolean |
supports()
Callback invoked to let the implementation know whether an
empty NPN extension should be added to a ClientHello SSL message.
|
void |
unsupported()
Callback invoked to let the application know that the server does
not support NPN.
|
boolean supports()
Callback invoked to let the implementation know whether an empty NPN extension should be added to a ClientHello SSL message.
void unsupported()
Callback invoked to let the application know that the server does not support NPN.
String selectProtocol(List<String> protocols)
Callback invoked to let the application select a protocol among the ones sent by the server.
The implementation may return null to indicate to the server that it was not possible to negotiate a protocol.
The implementation may throw an exception to indicate that the TLS handshake must be aborted.
protocols - the protocols sent by the servernull
to indicate to the server that it was not possible to negotiate
a protocolCopyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.