public static interface NextProtoNego.ServerProvider extends NextProtoNego.Provider
The server-side provider interface that applications must implement to interact with the negotiation of the next protocol.
| 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 an NPN extension in a
ServerHello SSL message.
|
void |
protocolSelected(String protocol)
Callback invoked to let the application know the protocol selected
by the client.
|
void |
unsupported()
Callback invoked to let the application know that the client does not
support NPN.
|
void unsupported()
Callback invoked to let the application know that the client does not support NPN.
List<String> protocols()
Callback invoked to let the implementation know the list of protocols that should be added to an NPN extension in a ServerHello SSL message.
This callback is invoked only if the client sent a NPN extension.
void protocolSelected(String protocol)
Callback invoked to let the application know the protocol selected by the client.
The protocol selected may be null if the client could not
negotiate a protocol.
The implementation may throw an exception to indicate that the TLS handshake must be aborted.
protocol - the selected protocol, or null if the client
could not negotiate a protocolCopyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.