Package io.netty.handler.ssl
Interface JdkApplicationProtocolNegotiator.ProtocolSelector
-
- Enclosing interface:
- JdkApplicationProtocolNegotiator
public static interface JdkApplicationProtocolNegotiator.ProtocolSelectorInterface to define the role of an application protocol selector in the SSL handshake process. Eitherunsupported()ORselect(List)will be called for each SSL handshake.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringselect(java.util.List<java.lang.String> protocols)Callback invoked to select the application level protocol from theprotocolsprovided.voidunsupported()Callback invoked to let the application know that the peer does not support thisApplicationProtocolNegotiator.
-
-
-
Method Detail
-
unsupported
void unsupported()
Callback invoked to let the application know that the peer does not support thisApplicationProtocolNegotiator.
-
select
java.lang.String select(java.util.List<java.lang.String> protocols) throws java.lang.ExceptionCallback invoked to select the application level protocol from theprotocolsprovided.- Parameters:
protocols- the protocols sent by the protocol advertiser- Returns:
- the protocol selected by this
JdkApplicationProtocolNegotiator.ProtocolSelector. Anullvalue will indicate the no protocols were selected but the handshake should not fail. The decision to fail the handshake is left to the other end negotiating the SSL handshake. - Throws:
java.lang.Exception- If theprotocolsprovide warrant failing the SSL handshake with a fatal alert.
-
-