Deprecated
ApplicationProtocolNegotiator
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | |
| public static interface | JdkApplicationProtocolNegotiator.ProtocolSelectionListener
A listener to be notified by which protocol was select by its peer. |
| public static interface | JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory
Factory interface for |
| public static interface | JdkApplicationProtocolNegotiator.ProtocolSelector
Interface to define the role of an application protocol selector in the SSL handshake process. |
| public static interface | JdkApplicationProtocolNegotiator.ProtocolSelectorFactory
Factory interface for |
| public static interface | JdkApplicationProtocolNegotiator.SslEngineWrapperFactory
Abstract factory pattern for wrapping an |
| Modifier and Type | Method and Description |
|---|---|
| public JdkApplicationProtocolNegotiator. | |
| public JdkApplicationProtocolNegotiator. | |
| public JdkApplicationProtocolNegotiator. |
| protocolListenerFactory | back to summary |
|---|---|
| public JdkApplicationProtocolNegotiator. Get the | |
| protocolSelectorFactory | back to summary |
|---|---|
| public JdkApplicationProtocolNegotiator. Get the | |
| wrapperFactory | back to summary |
|---|---|
| public JdkApplicationProtocolNegotiator. Get the | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final SSLEngine | wrapSslEngine(SSLEngine
The engine to wrap. engine, JdkApplicationProtocolNegotiator The application level protocol negotiator applicationNegotiator, boolean
Implements io.
Deprecated
as a consequence of
Abstract factory pattern for wrapping an JdkApplicationProtocolNegotiator being deprecated.
SSLEngine object.
|
| pack-priv abstract SSLEngine | Returns: The resulting wrapped engine. This may just beengine.The engine to wrap. engine, ByteBufAllocator the buffer allocator. alloc, JdkApplicationProtocolNegotiator The application level protocol negotiator applicationNegotiator, boolean
Deprecated
as a consequence of
Abstract factory pattern for wrapping an JdkApplicationProtocolNegotiator being deprecated.
SSLEngine object.
|
| AllocatorAwareSslEngineWrapperFactory | back to summary |
|---|---|
| public AllocatorAwareSslEngineWrapperFactory() | |
| wrapSslEngine | back to summary |
|---|---|
| public final SSLEngine wrapSslEngine(SSLEngine engine, JdkApplicationProtocolNegotiator applicationNegotiator, boolean isServer) Implements io. Doc from io. Deprecated as a consequence of Abstract factory pattern for wrapping an
| |
| wrapSslEngine | back to summary |
|---|---|
| pack-priv abstract SSLEngine wrapSslEngine(SSLEngine engine, ByteBufAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator, boolean isServer)
Deprecated as a consequence of Abstract factory pattern for wrapping an
| |
ProtocolSelectionListener#unsupported() OR the ProtocolSelectionListener#selected(String) method
will be called for each SSL handshake.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | unsupported()
Callback invoked to let the application know that the peer does not support this
|
| selected | back to summary |
|---|---|
| public void selected(String protocol) throws Exception Callback invoked to let this application know the protocol chosen by the peer. | |
| unsupported | back to summary |
|---|---|
| public void unsupported() Callback invoked to let the application know that the peer does not support this
| |
ProtocolSelectionListener objects.
| Modifier and Type | Method and Description |
|---|---|
| public JdkApplicationProtocolNegotiator. | Returns: A new instance ofProtocolSelectionListener.The engine, List<String> SSLEngine that the returned ProtocolSelectionListener will be used to
create an instance for.The protocols that are supported in preference order. supportedProtocols)Generate a new instance of |
| newListener | back to summary |
|---|---|
| public JdkApplicationProtocolNegotiator. Generate a new instance of
| |
ProtocolSelector#unsupported() OR ProtocolSelector#select(List) will be called for each SSL
handshake.
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the protocol selected by thisProtocolSelector. A null 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.the protocols sent by the protocol advertiser protocols)Callback invoked to select the application level protocol from the |
| public void | unsupported()
Callback invoked to let the application know that the peer does not support this
|
| select | back to summary |
|---|---|
| public String select(List<String> protocols) throws Exception Callback invoked to select the application level protocol from the
| |
| unsupported | back to summary |
|---|---|
| public void unsupported() Callback invoked to let the application know that the peer does not support this
| |
ProtocolSelector objects.
| Modifier and Type | Method and Description |
|---|---|
| public JdkApplicationProtocolNegotiator. | Returns: A new instance ofProtocolSelector.The engine, Set<String> SSLEngine that the returned ProtocolSelector will be used to create an
instance for.The protocols that are supported. supportedProtocols)Generate a new instance of |
| newSelector | back to summary |
|---|---|
| public JdkApplicationProtocolNegotiator. Generate a new instance of
| |
SSLEngine object. This is useful for NPN/APLN JDK support.
| Modifier and Type | Method and Description |
|---|---|
| public SSLEngine | Returns: The resulting wrapped engine. This may just beengine.The engine to wrap. engine, JdkApplicationProtocolNegotiator The application level protocol negotiator applicationNegotiator, boolean
Deprecated
as a consequence of
Abstract factory pattern for wrapping an JdkApplicationProtocolNegotiator being deprecated.
SSLEngine object.
|
| wrapSslEngine | back to summary |
|---|---|
| public SSLEngine wrapSslEngine(SSLEngine engine, JdkApplicationProtocolNegotiator applicationNegotiator, boolean isServer)
Deprecated as a consequence of Abstract factory pattern for wrapping an
| |