Top Description Fields Constructors Methods
io.netty5.handler.ssl

public final Class JdkNpnApplicationProtocolNegotiator

extends JdkBaseApplicationProtocolNegotiator
Class Inheritance
Annotations
@Deprecated
Imports
javax.net.ssl.SSLEngine

Deprecated

use ApplicationProtocolConfig.

The JdkApplicationProtocolNegotiator to use if you need NPN and are using SslProvider#JDK.

Field Summary

Modifier and TypeField and Description
private static final JdkApplicationProtocolNegotiator.SslEngineWrapperFactory
Inherited from io.netty5.handler.ssl.JdkBaseApplicationProtocolNegotiator:
FAIL_SELECTION_LISTENER_FACTORYFAIL_SELECTOR_FACTORYNO_FAIL_SELECTION_LISTENER_FACTORYNO_FAIL_SELECTOR_FACTORY

Constructor Summary

AccessConstructor and Description
public
JdkNpnApplicationProtocolNegotiator(Iterable<String>
The order of iteration determines the preference of support for protocols.
protocols
)

Create a new instance.

public
JdkNpnApplicationProtocolNegotiator(String...
The order of iteration determines the preference of support for protocols.
protocols
)

Create a new instance.

public
JdkNpnApplicationProtocolNegotiator(boolean
Fail with a fatal alert if not common protocols are detected.
failIfNoCommonProtocols
,
Iterable<String>
The order of iteration determines the preference of support for protocols.
protocols
)

Create a new instance.

public
JdkNpnApplicationProtocolNegotiator(boolean
Fail with a fatal alert if not common protocols are detected.
failIfNoCommonProtocols
,
String...
The order of iteration determines the preference of support for protocols.
protocols
)

Create a new instance.

public
JdkNpnApplicationProtocolNegotiator(boolean
Client side fail with a fatal alert if not common protocols are detected.
clientFailIfNoCommonProtocols
,
boolean
Server side fail with a fatal alert if not common protocols are detected.
serverFailIfNoCommonProtocols
,
Iterable<String>
The order of iteration determines the preference of support for protocols.
protocols
)

Create a new instance.

public
JdkNpnApplicationProtocolNegotiator(boolean
Client side fail with a fatal alert if not common protocols are detected.
clientFailIfNoCommonProtocols
,
boolean
Server side fail with a fatal alert if not common protocols are detected.
serverFailIfNoCommonProtocols
,
String...
The order of iteration determines the preference of support for protocols.
protocols
)

Create a new instance.

public
JdkNpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory
The factory which provides classes responsible for selecting the protocol.
selectorFactory
,
JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory
The factory which provides to be notified of which protocol was selected.
listenerFactory
,
Iterable<String>
The order of iteration determines the preference of support for protocols.
protocols
)

Create a new instance.

public
JdkNpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory
The factory which provides classes responsible for selecting the protocol.
selectorFactory
,
JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory
The factory which provides to be notified of which protocol was selected.
listenerFactory
,
String...
The order of iteration determines the preference of support for protocols.
protocols
)

Create a new instance.

Method Summary

Inherited from io.netty5.handler.ssl.JdkBaseApplicationProtocolNegotiator:
protocolListenerFactoryprotocolsprotocolSelectorFactorywrapperFactory

Field Detail

NPN_WRAPPERback to summary
private static final JdkApplicationProtocolNegotiator.SslEngineWrapperFactory NPN_WRAPPER

Constructor Detail

JdkNpnApplicationProtocolNegotiatorback to summary
public JdkNpnApplicationProtocolNegotiator(Iterable<String> protocols)

Create a new instance.

Parameters
protocols:Iterable<String>

The order of iteration determines the preference of support for protocols.

JdkNpnApplicationProtocolNegotiatorback to summary
public JdkNpnApplicationProtocolNegotiator(String... protocols)

Create a new instance.

Parameters
protocols:String[]

The order of iteration determines the preference of support for protocols.

JdkNpnApplicationProtocolNegotiatorback to summary
public JdkNpnApplicationProtocolNegotiator(boolean failIfNoCommonProtocols, Iterable<String> protocols)

Create a new instance.

Parameters
failIfNoCommonProtocols:boolean

Fail with a fatal alert if not common protocols are detected.

protocols:Iterable<String>

The order of iteration determines the preference of support for protocols.

JdkNpnApplicationProtocolNegotiatorback to summary
public JdkNpnApplicationProtocolNegotiator(boolean failIfNoCommonProtocols, String... protocols)

Create a new instance.

Parameters
failIfNoCommonProtocols:boolean

Fail with a fatal alert if not common protocols are detected.

protocols:String[]

The order of iteration determines the preference of support for protocols.

JdkNpnApplicationProtocolNegotiatorback to summary
public JdkNpnApplicationProtocolNegotiator(boolean clientFailIfNoCommonProtocols, boolean serverFailIfNoCommonProtocols, Iterable<String> protocols)

Create a new instance.

Parameters
clientFailIfNoCommonProtocols:boolean

Client side fail with a fatal alert if not common protocols are detected.

serverFailIfNoCommonProtocols:boolean

Server side fail with a fatal alert if not common protocols are detected.

protocols:Iterable<String>

The order of iteration determines the preference of support for protocols.

JdkNpnApplicationProtocolNegotiatorback to summary
public JdkNpnApplicationProtocolNegotiator(boolean clientFailIfNoCommonProtocols, boolean serverFailIfNoCommonProtocols, String... protocols)

Create a new instance.

Parameters
clientFailIfNoCommonProtocols:boolean

Client side fail with a fatal alert if not common protocols are detected.

serverFailIfNoCommonProtocols:boolean

Server side fail with a fatal alert if not common protocols are detected.

protocols:String[]

The order of iteration determines the preference of support for protocols.

JdkNpnApplicationProtocolNegotiatorback to summary
public JdkNpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory selectorFactory, JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory listenerFactory, Iterable<String> protocols)

Create a new instance.

Parameters
selectorFactory:JdkApplicationProtocolNegotiator.ProtocolSelectorFactory

The factory which provides classes responsible for selecting the protocol.

listenerFactory:JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory

The factory which provides to be notified of which protocol was selected.

protocols:Iterable<String>

The order of iteration determines the preference of support for protocols.

JdkNpnApplicationProtocolNegotiatorback to summary
public JdkNpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory selectorFactory, JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory listenerFactory, String... protocols)

Create a new instance.

Parameters
selectorFactory:JdkApplicationProtocolNegotiator.ProtocolSelectorFactory

The factory which provides classes responsible for selecting the protocol.

listenerFactory:JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory

The factory which provides to be notified of which protocol was selected.

protocols:String[]

The order of iteration determines the preference of support for protocols.