Package io.netty.handler.ssl
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 theprotocols
provided.void
Callback 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.ProtocolSelector
Callback invoked to let the application know that the peer does not support thisApplicationProtocolNegotiator
.- Specified by:
unsupported
in interfaceJdkApplicationProtocolNegotiator.ProtocolSelector
-
select
Description copied from interface:JdkApplicationProtocolNegotiator.ProtocolSelector
Callback invoked to select the application level protocol from theprotocols
provided.- Specified by:
select
in interfaceJdkApplicationProtocolNegotiator.ProtocolSelector
- Parameters:
protocols
- the protocols sent by the protocol advertiser- Returns:
- the protocol selected by this
JdkApplicationProtocolNegotiator.ProtocolSelector
. Anull
value 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 theprotocols
provide warrant failing the SSL handshake with a fatal alert.
-
noSelectMatchFound
- Throws:
Exception
-