public static interface ALPN.ServerProvider extends ALPN.Provider
Modifier and Type | Method and Description |
---|---|
String |
select(List<String> protocols)
Callback invoked to let the server application select
a protocol among the ones sent by the client.
|
void |
unsupported()
Callback invoked to let the server application know that
the client does not support ALPN.
|
void unsupported()
String select(List<String> protocols) throws SSLException
Callback invoked to let the server application select a protocol among the ones sent by the client.
The implementation may throw an exception to indicate
that the protocol negotiation is not possible,
causing the connection to be closed with a TLS alert of
type no_application_protocol(120)
.
protocols
- the protocols sent by the client.null
value will indicate the server will not
include the ALPN extension
message in the ServerHello
message. This means the server appears as though it doesn't support
ALPN and lets the client decide how to handle the situation.SSLException
- if the protocol negotiation failed.Copyright © 1995–2021 Mort Bay Consulting. All rights reserved.