- java.lang.Object
-
- io.netty5.handler.ssl.JdkAlpnApplicationProtocolNegotiator
-
- All Implemented Interfaces:
ApplicationProtocolNegotiator
,JdkApplicationProtocolNegotiator
@Deprecated public final class JdkAlpnApplicationProtocolNegotiator extends Object
Deprecated.TheJdkApplicationProtocolNegotiator
to use if you need ALPN 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 JdkAlpnApplicationProtocolNegotiator(boolean clientFailIfNoCommonProtocols, boolean serverFailIfNoCommonProtocols, Iterable<String> protocols)
Deprecated.Create a new instance.JdkAlpnApplicationProtocolNegotiator(boolean clientFailIfNoCommonProtocols, boolean serverFailIfNoCommonProtocols, String... protocols)
Deprecated.Create a new instance.JdkAlpnApplicationProtocolNegotiator(boolean failIfNoCommonProtocols, Iterable<String> protocols)
Deprecated.Create a new instance.JdkAlpnApplicationProtocolNegotiator(boolean failIfNoCommonProtocols, String... protocols)
Deprecated.Create a new instance.JdkAlpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory selectorFactory, JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory listenerFactory, Iterable<String> protocols)
Deprecated.Create a new instance.JdkAlpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory selectorFactory, JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory listenerFactory, String... protocols)
Deprecated.Create a new instance.JdkAlpnApplicationProtocolNegotiator(Iterable<String> protocols)
Deprecated.Create a new instance.JdkAlpnApplicationProtocolNegotiator(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
-
JdkAlpnApplicationProtocolNegotiator
public JdkAlpnApplicationProtocolNegotiator(Iterable<String> protocols)
Deprecated.Create a new instance.- Parameters:
protocols
- The order of iteration determines the preference of support for protocols.
-
JdkAlpnApplicationProtocolNegotiator
public JdkAlpnApplicationProtocolNegotiator(String... protocols)
Deprecated.Create a new instance.- Parameters:
protocols
- The order of iteration determines the preference of support for protocols.
-
JdkAlpnApplicationProtocolNegotiator
public JdkAlpnApplicationProtocolNegotiator(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.
-
JdkAlpnApplicationProtocolNegotiator
public JdkAlpnApplicationProtocolNegotiator(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.
-
JdkAlpnApplicationProtocolNegotiator
public JdkAlpnApplicationProtocolNegotiator(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.
-
JdkAlpnApplicationProtocolNegotiator
public JdkAlpnApplicationProtocolNegotiator(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.
-
JdkAlpnApplicationProtocolNegotiator
public JdkAlpnApplicationProtocolNegotiator(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.
-
JdkAlpnApplicationProtocolNegotiator
public JdkAlpnApplicationProtocolNegotiator(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
-
-