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

pack-priv abstract Class JettyAlpnSslEngine

extends JdkSslEngine
Class Inheritance
Known Direct Subclasses
io.netty5.handler.ssl.JettyAlpnSslEngine.ClientEngine, io.netty5.handler.ssl.JettyAlpnSslEngine.ServerEngine
Annotations
@Deprecated
forRemoval:true
Imports
io.netty5.handler.ssl.JdkApplicationProtocolNegotiator.ProtocolSelectionListener, .JdkApplicationProtocolNegotiator.ProtocolSelector, org.eclipse.jetty.alpn.ALPN, javax.net.ssl.SSLEngine, .SSLException, java.util.LinkedHashSet, .List

Deprecated

for removal.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
JettyAlpnSslEngine.ClientEngine

Deprecated as a consequence of JettyAlpnSslEngine being deprecated.
private static class
JettyAlpnSslEngine.ServerEngine

Deprecated as a consequence of JettyAlpnSslEngine being deprecated.

Field Summary

Modifier and TypeField and Description
private static final boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static boolean
pack-priv static boolean
pack-priv static JettyAlpnSslEngine
newClientEngine(SSLEngine engine, JdkApplicationProtocolNegotiator applicationNegotiator)

Deprecated as a consequence of JdkApplicationProtocolNegotiator and JettyAlpnSslEngine being deprecated.
pack-priv static JettyAlpnSslEngine
newServerEngine(SSLEngine engine, JdkApplicationProtocolNegotiator applicationNegotiator)

Deprecated as a consequence of JdkApplicationProtocolNegotiator and JettyAlpnSslEngine being deprecated.
Inherited from io.netty5.handler.ssl.JdkSslEngine:
beginHandshakecloseInboundcloseOutboundgetDelegatedTaskgetEnabledCipherSuitesgetEnabledProtocolsgetEnableSessionCreationgetHandshakeSessiongetHandshakeStatusgetNeedClientAuthgetNegotiatedApplicationProtocolgetPeerHostgetPeerPortgetSessiongetSSLParametersgetSupportedCipherSuitesgetSupportedProtocolsgetUseClientModegetWantClientAuthgetWrappedEngineisInboundDoneisOutboundDonesetEnabledCipherSuitessetEnabledProtocolssetEnableSessionCreationsetNeedClientAuthsetNegotiatedApplicationProtocolsetSSLParameterssetUseClientModesetWantClientAuthunwrapunwrapunwrapwrapwrapwrap

Field Detail

availableback to summary
private static final boolean available

Constructor Detail

JettyAlpnSslEngineback to summary
private JettyAlpnSslEngine(SSLEngine engine)

Method Detail

initAvailableback to summary
private static boolean initAvailable()
isAvailableback to summary
pack-priv static boolean isAvailable()
newClientEngineback to summary
pack-priv static JettyAlpnSslEngine newClientEngine(SSLEngine engine, JdkApplicationProtocolNegotiator applicationNegotiator)

Deprecated

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

newServerEngineback to summary
pack-priv static JettyAlpnSslEngine newServerEngine(SSLEngine engine, JdkApplicationProtocolNegotiator applicationNegotiator)

Deprecated

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

io.netty5.handler.ssl back to summary

private final Class JettyAlpnSslEngine.ClientEngine

extends JettyAlpnSslEngine
Class Inheritance

Deprecated

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

Constructor Summary

AccessConstructor and Description
pack-priv
ClientEngine(SSLEngine engine, final JdkApplicationProtocolNegotiator applicationNegotiator)

Deprecated as a consequence of JdkApplicationProtocolNegotiator being deprecated.

Method Summary

Modifier and TypeMethod and Description
public void
closeInbound()

Overrides io.netty5.handler.ssl.JdkSslEngine.closeInbound.

Signals that no more inbound network data will be sent to this SSLEngine.
public void
closeOutbound()

Overrides io.netty5.handler.ssl.JdkSslEngine.closeOutbound.

Signals that no more outbound application data will be sent on this SSLEngine.
Inherited from io.netty5.handler.ssl.JettyAlpnSslEngine:
isAvailablenewClientEnginenewServerEngine

Constructor Detail

ClientEngineback to summary
pack-priv ClientEngine(SSLEngine engine, final JdkApplicationProtocolNegotiator applicationNegotiator)

Deprecated

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

Method Detail

closeInboundback to summary
public void closeInbound() throws SSLException

Overrides io.netty5.handler.ssl.JdkSslEngine.closeInbound.

Doc from javax.net.ssl.SSLEngine.closeInbound.

Signals that no more inbound network data will be sent to this SSLEngine.

If the application initiated the closing process by calling closeOutbound(), under some circumstances it is not required that the initiator wait for the peer's corresponding close message. (See section 7.2.1 of the TLS specification (RFC 2246) for more information on waiting for closure alerts.) In such cases, this method need not be called.

But if the application did not initiate the closure process, or if the circumstances above do not apply, this method should be called whenever the end of the SSL/TLS/DTLS data stream is reached. This ensures closure of the inbound side, and checks that the peer followed the SSL/TLS/DTLS close procedure properly, thus detecting possible truncation attacks.

This method is idempotent: if the inbound side has already been closed, this method does not do anything.

wrap() should be called to flush any remaining handshake data.

Annotations
@Override
Exceptions
SSLException:
if this engine has not received the proper SSL/TLS/DTLS close notification message from the peer.
closeOutboundback to summary
public void closeOutbound()

Overrides io.netty5.handler.ssl.JdkSslEngine.closeOutbound.

Doc from javax.net.ssl.SSLEngine.closeOutbound.

Signals that no more outbound application data will be sent on this SSLEngine.

This method is idempotent: if the outbound side has already been closed, this method does not do anything.

wrap(ByteBuffer, ByteBuffer) should be called to flush any remaining handshake data.

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

private final Class JettyAlpnSslEngine.ServerEngine

extends JettyAlpnSslEngine
Class Inheritance

Deprecated

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

Constructor Summary

AccessConstructor and Description
pack-priv
ServerEngine(SSLEngine engine, final JdkApplicationProtocolNegotiator applicationNegotiator)

Deprecated as a consequence of JdkApplicationProtocolNegotiator being deprecated.

Method Summary

Modifier and TypeMethod and Description
public void
closeInbound()

Overrides io.netty5.handler.ssl.JdkSslEngine.closeInbound.

Signals that no more inbound network data will be sent to this SSLEngine.
public void
closeOutbound()

Overrides io.netty5.handler.ssl.JdkSslEngine.closeOutbound.

Signals that no more outbound application data will be sent on this SSLEngine.
Inherited from io.netty5.handler.ssl.JettyAlpnSslEngine:
isAvailablenewClientEnginenewServerEngine

Constructor Detail

ServerEngineback to summary
pack-priv ServerEngine(SSLEngine engine, final JdkApplicationProtocolNegotiator applicationNegotiator)

Deprecated

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

Method Detail

closeInboundback to summary
public void closeInbound() throws SSLException

Overrides io.netty5.handler.ssl.JdkSslEngine.closeInbound.

Doc from javax.net.ssl.SSLEngine.closeInbound.

Signals that no more inbound network data will be sent to this SSLEngine.

If the application initiated the closing process by calling closeOutbound(), under some circumstances it is not required that the initiator wait for the peer's corresponding close message. (See section 7.2.1 of the TLS specification (RFC 2246) for more information on waiting for closure alerts.) In such cases, this method need not be called.

But if the application did not initiate the closure process, or if the circumstances above do not apply, this method should be called whenever the end of the SSL/TLS/DTLS data stream is reached. This ensures closure of the inbound side, and checks that the peer followed the SSL/TLS/DTLS close procedure properly, thus detecting possible truncation attacks.

This method is idempotent: if the inbound side has already been closed, this method does not do anything.

wrap() should be called to flush any remaining handshake data.

Annotations
@Override
Exceptions
SSLException:
if this engine has not received the proper SSL/TLS/DTLS close notification message from the peer.
closeOutboundback to summary
public void closeOutbound()

Overrides io.netty5.handler.ssl.JdkSslEngine.closeOutbound.

Doc from javax.net.ssl.SSLEngine.closeOutbound.

Signals that no more outbound application data will be sent on this SSLEngine.

This method is idempotent: if the outbound side has already been closed, this method does not do anything.

wrap(ByteBuffer, ByteBuffer) should be called to flush any remaining handshake data.

Annotations
@Override