- java.lang.Object
-
- io.netty5.handler.ssl.JdkNpnApplicationProtocolNegotiator
-
- All Implemented Interfaces:
ApplicationProtocolNegotiator
,JdkApplicationProtocolNegotiator
@Deprecated public final class JdkNpnApplicationProtocolNegotiator extends Object
Deprecated.TheJdkApplicationProtocolNegotiator
to use if you need NPN and are usingSslProvider.JDK
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty5.handler.ssl.JdkApplicationProtocolNegotiator
JdkApplicationProtocolNegotiator.AllocatorAwareSslEngineWrapperFactory, JdkApplicationProtocolNegotiator.ProtocolSelectionListener, JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory, JdkApplicationProtocolNegotiator.ProtocolSelector, JdkApplicationProtocolNegotiator.ProtocolSelectorFactory, JdkApplicationProtocolNegotiator.SslEngineWrapperFactory
-
-
Constructor Summary
Constructors Constructor Description JdkNpnApplicationProtocolNegotiator(boolean clientFailIfNoCommonProtocols, boolean serverFailIfNoCommonProtocols, Iterable<String> protocols)
Deprecated.Create a new instance.JdkNpnApplicationProtocolNegotiator(boolean clientFailIfNoCommonProtocols, boolean serverFailIfNoCommonProtocols, String... protocols)
Deprecated.Create a new instance.JdkNpnApplicationProtocolNegotiator(boolean failIfNoCommonProtocols, Iterable<String> protocols)
Deprecated.Create a new instance.JdkNpnApplicationProtocolNegotiator(boolean failIfNoCommonProtocols, String... protocols)
Deprecated.Create a new instance.JdkNpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory selectorFactory, JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory listenerFactory, Iterable<String> protocols)
Deprecated.Create a new instance.JdkNpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory selectorFactory, JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory listenerFactory, String... protocols)
Deprecated.Create a new instance.JdkNpnApplicationProtocolNegotiator(Iterable<String> protocols)
Deprecated.Create a new instance.JdkNpnApplicationProtocolNegotiator(String... protocols)
Deprecated.Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory
protocolListenerFactory()
List<String>
protocols()
Get the collection of application protocols supported by this application (in preference order).JdkApplicationProtocolNegotiator.ProtocolSelectorFactory
protocolSelectorFactory()
JdkApplicationProtocolNegotiator.SslEngineWrapperFactory
wrapperFactory()
-
-
-
Constructor Detail
-
JdkNpnApplicationProtocolNegotiator
public JdkNpnApplicationProtocolNegotiator(Iterable<String> protocols)
Deprecated.Create a new instance.- Parameters:
protocols
- The order of iteration determines the preference of support for protocols.
-
JdkNpnApplicationProtocolNegotiator
public JdkNpnApplicationProtocolNegotiator(String... protocols)
Deprecated.Create a new instance.- Parameters:
protocols
- The order of iteration determines the preference of support for protocols.
-
JdkNpnApplicationProtocolNegotiator
public JdkNpnApplicationProtocolNegotiator(boolean failIfNoCommonProtocols, Iterable<String> protocols)
Deprecated.Create a new instance.- Parameters:
failIfNoCommonProtocols
- Fail with a fatal alert if not common protocols are detected.protocols
- The order of iteration determines the preference of support for protocols.
-
JdkNpnApplicationProtocolNegotiator
public JdkNpnApplicationProtocolNegotiator(boolean failIfNoCommonProtocols, String... protocols)
Deprecated.Create a new instance.- Parameters:
failIfNoCommonProtocols
- Fail with a fatal alert if not common protocols are detected.protocols
- The order of iteration determines the preference of support for protocols.
-
JdkNpnApplicationProtocolNegotiator
public JdkNpnApplicationProtocolNegotiator(boolean clientFailIfNoCommonProtocols, boolean serverFailIfNoCommonProtocols, Iterable<String> protocols)
Deprecated.Create a new instance.- Parameters:
clientFailIfNoCommonProtocols
- Client side fail with a fatal alert if not common protocols are detected.serverFailIfNoCommonProtocols
- Server side fail with a fatal alert if not common protocols are detected.protocols
- The order of iteration determines the preference of support for protocols.
-
JdkNpnApplicationProtocolNegotiator
public JdkNpnApplicationProtocolNegotiator(boolean clientFailIfNoCommonProtocols, boolean serverFailIfNoCommonProtocols, String... protocols)
Deprecated.Create a new instance.- Parameters:
clientFailIfNoCommonProtocols
- Client side fail with a fatal alert if not common protocols are detected.serverFailIfNoCommonProtocols
- Server side fail with a fatal alert if not common protocols are detected.protocols
- The order of iteration determines the preference of support for protocols.
-
JdkNpnApplicationProtocolNegotiator
public JdkNpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory selectorFactory, JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory listenerFactory, Iterable<String> protocols)
Deprecated.Create a new instance.- Parameters:
selectorFactory
- The factory which provides classes responsible for selecting the protocol.listenerFactory
- The factory which provides to be notified of which protocol was selected.protocols
- The order of iteration determines the preference of support for protocols.
-
JdkNpnApplicationProtocolNegotiator
public JdkNpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory selectorFactory, JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory listenerFactory, String... protocols)
Deprecated.Create a new instance.- Parameters:
selectorFactory
- The factory which provides classes responsible for selecting the protocol.listenerFactory
- The factory which provides to be notified of which protocol was selected.protocols
- The order of iteration determines the preference of support for protocols.
-
-
Method Detail
-
protocols
public List<String> protocols()
Description copied from interface:ApplicationProtocolNegotiator
Get the collection of application protocols supported by this application (in preference order).- Specified by:
protocols
in interfaceApplicationProtocolNegotiator
-
protocolSelectorFactory
public JdkApplicationProtocolNegotiator.ProtocolSelectorFactory protocolSelectorFactory()
Description copied from interface:JdkApplicationProtocolNegotiator
- Specified by:
protocolSelectorFactory
in interfaceJdkApplicationProtocolNegotiator
-
protocolListenerFactory
public JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory protocolListenerFactory()
Description copied from interface:JdkApplicationProtocolNegotiator
- Specified by:
protocolListenerFactory
in interfaceJdkApplicationProtocolNegotiator
-
wrapperFactory
public JdkApplicationProtocolNegotiator.SslEngineWrapperFactory wrapperFactory()
Description copied from interface:JdkApplicationProtocolNegotiator
- Specified by:
wrapperFactory
in interfaceJdkApplicationProtocolNegotiator
-
-