Class JdkBaseApplicationProtocolNegotiator.NoFailProtocolSelector
java.lang.Object
io.netty.handler.ssl.JdkBaseApplicationProtocolNegotiator.NoFailProtocolSelector
- All Implemented Interfaces:
JdkApplicationProtocolNegotiator.ProtocolSelector
- Direct Known Subclasses:
JdkBaseApplicationProtocolNegotiator.FailProtocolSelector
- Enclosing class:
JdkBaseApplicationProtocolNegotiator
static class JdkBaseApplicationProtocolNegotiator.NoFailProtocolSelector
extends Object
implements JdkApplicationProtocolNegotiator.ProtocolSelector
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNoFailProtocolSelector(JdkSslEngine engineWrapper, Set<String> supportedProtocols) -
Method Summary
Modifier and TypeMethodDescriptionCallback invoked to select the application level protocol from theprotocolsprovided.voidCallback invoked to let the application know that the peer does not support thisApplicationProtocolNegotiator.
-
Field Details
-
engineWrapper
-
supportedProtocols
-
-
Constructor Details
-
NoFailProtocolSelector
NoFailProtocolSelector(JdkSslEngine engineWrapper, Set<String> supportedProtocols)
-
-
Method Details
-
unsupported
public void unsupported()Description copied from interface:JdkApplicationProtocolNegotiator.ProtocolSelectorCallback invoked to let the application know that the peer does not support thisApplicationProtocolNegotiator.- Specified by:
unsupportedin interfaceJdkApplicationProtocolNegotiator.ProtocolSelector
-
select
Description copied from interface:JdkApplicationProtocolNegotiator.ProtocolSelectorCallback invoked to select the application level protocol from theprotocolsprovided.- Specified by:
selectin interfaceJdkApplicationProtocolNegotiator.ProtocolSelector- 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:
Exception- If theprotocolsprovide warrant failing the SSL handshake with a fatal alert.
-
noSelectMatchFound
-