Top Description Inners Fields Constructors Methods
io.netty.handler.ssl

public final Class JdkAlpnApplicationProtocolNegotiator

extends JdkBaseApplicationProtocolNegotiator
Class Inheritance
Annotations
@Deprecated
Imports
io.netty.buffer.ByteBufAllocator, javax.net.ssl.SSLEngine

Deprecated

use ApplicationProtocolConfig.

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

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

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

Constructor Summary

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

Create a new instance.

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

Create a new instance.

public
JdkAlpnApplicationProtocolNegotiator(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
JdkAlpnApplicationProtocolNegotiator(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
JdkAlpnApplicationProtocolNegotiator(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
JdkAlpnApplicationProtocolNegotiator(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
JdkAlpnApplicationProtocolNegotiator(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
JdkAlpnApplicationProtocolNegotiator(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

Modifier and TypeMethod and Description
pack-priv static boolean
Inherited from io.netty.handler.ssl.JdkBaseApplicationProtocolNegotiator:
protocolListenerFactoryprotocolsprotocolSelectorFactorywrapperFactory

Field Detail

ALPN_WRAPPERback to summary
private static final JdkApplicationProtocolNegotiator.SslEngineWrapperFactory ALPN_WRAPPER
AVAILABLEback to summary
private static final boolean AVAILABLE

Constructor Detail

JdkAlpnApplicationProtocolNegotiatorback to summary
public JdkAlpnApplicationProtocolNegotiator(Iterable<String> protocols)

Create a new instance.

Parameters
protocols:Iterable<String>

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

JdkAlpnApplicationProtocolNegotiatorback to summary
public JdkAlpnApplicationProtocolNegotiator(String... protocols)

Create a new instance.

Parameters
protocols:String[]

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

JdkAlpnApplicationProtocolNegotiatorback to summary
public JdkAlpnApplicationProtocolNegotiator(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.

JdkAlpnApplicationProtocolNegotiatorback to summary
public JdkAlpnApplicationProtocolNegotiator(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.

JdkAlpnApplicationProtocolNegotiatorback to summary
public JdkAlpnApplicationProtocolNegotiator(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.

JdkAlpnApplicationProtocolNegotiatorback to summary
public JdkAlpnApplicationProtocolNegotiator(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.

JdkAlpnApplicationProtocolNegotiatorback to summary
public JdkAlpnApplicationProtocolNegotiator(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.

JdkAlpnApplicationProtocolNegotiatorback to summary
public JdkAlpnApplicationProtocolNegotiator(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.

Method Detail

isAlpnSupportedback to summary
pack-priv static boolean isAlpnSupported()
io.netty.handler.ssl back to summary

private final Class JdkAlpnApplicationProtocolNegotiator.AlpnWrapper

extends AllocatorAwareSslEngineWrapperFactory
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public SSLEngine
wrapSslEngine(SSLEngine
The engine to wrap.
engine
,
ByteBufAllocator
the buffer allocator.
alloc
,
JdkApplicationProtocolNegotiator
The application level protocol negotiator
applicationNegotiator
,
boolean
  • true if the engine is for server side of connections
  • false if the engine is for client side of connections
isServer
)

Implements abstract io.netty.handler.ssl.JdkApplicationProtocolNegotiator.AllocatorAwareSslEngineWrapperFactory.wrapSslEngine.

Deprecated as a consequence of JdkApplicationProtocolNegotiator being deprecated.
Abstract factory pattern for wrapping an SSLEngine object.
Inherited from io.netty.handler.ssl.JdkApplicationProtocolNegotiator.AllocatorAwareSslEngineWrapperFactory:
wrapSslEngine

Constructor Detail

AlpnWrapperback to summary
private AlpnWrapper()

Method Detail

wrapSslEngineback to summary
public SSLEngine wrapSslEngine(SSLEngine engine, ByteBufAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator, boolean isServer)

Implements abstract io.netty.handler.ssl.JdkApplicationProtocolNegotiator.AllocatorAwareSslEngineWrapperFactory.wrapSslEngine.

Doc from io.netty.handler.ssl.JdkApplicationProtocolNegotiator.AllocatorAwareSslEngineWrapperFactory.wrapSslEngine.

Deprecated

as a consequence of JdkApplicationProtocolNegotiator being deprecated. See corresponding docs for further information.

Abstract factory pattern for wrapping an SSLEngine object. This is useful for NPN/APLN support.

Parameters
engine:SSLEngine

The engine to wrap.

alloc:ByteBufAllocator

the buffer allocator.

applicationNegotiator:JdkApplicationProtocolNegotiator

The application level protocol negotiator

isServer:boolean

  • true if the engine is for server side of connections
  • false if the engine is for client side of connections
Returns:SSLEngine

The resulting wrapped engine. This may just be engine.

Annotations
@Override
io.netty.handler.ssl back to summary

private final Class JdkAlpnApplicationProtocolNegotiator.FailureWrapper

extends AllocatorAwareSslEngineWrapperFactory
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public SSLEngine
wrapSslEngine(SSLEngine
The engine to wrap.
engine
,
ByteBufAllocator
the buffer allocator.
alloc
,
JdkApplicationProtocolNegotiator
The application level protocol negotiator
applicationNegotiator
,
boolean
  • true if the engine is for server side of connections
  • false if the engine is for client side of connections
isServer
)

Implements abstract io.netty.handler.ssl.JdkApplicationProtocolNegotiator.AllocatorAwareSslEngineWrapperFactory.wrapSslEngine.

Deprecated as a consequence of JdkApplicationProtocolNegotiator being deprecated.
Abstract factory pattern for wrapping an SSLEngine object.
Inherited from io.netty.handler.ssl.JdkApplicationProtocolNegotiator.AllocatorAwareSslEngineWrapperFactory:
wrapSslEngine

Constructor Detail

FailureWrapperback to summary
private FailureWrapper()

Method Detail

wrapSslEngineback to summary
public SSLEngine wrapSslEngine(SSLEngine engine, ByteBufAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator, boolean isServer)

Implements abstract io.netty.handler.ssl.JdkApplicationProtocolNegotiator.AllocatorAwareSslEngineWrapperFactory.wrapSslEngine.

Doc from io.netty.handler.ssl.JdkApplicationProtocolNegotiator.AllocatorAwareSslEngineWrapperFactory.wrapSslEngine.

Deprecated

as a consequence of JdkApplicationProtocolNegotiator being deprecated. See corresponding docs for further information.

Abstract factory pattern for wrapping an SSLEngine object. This is useful for NPN/APLN support.

Parameters
engine:SSLEngine

The engine to wrap.

alloc:ByteBufAllocator

the buffer allocator.

applicationNegotiator:JdkApplicationProtocolNegotiator

The application level protocol negotiator

isServer:boolean

  • true if the engine is for server side of connections
  • false if the engine is for client side of connections
Returns:SSLEngine

The resulting wrapped engine. This may just be engine.

Annotations
@Override