Top Fields Constructors Methods
io.netty.handler.ssl

pack-priv final Class JettyNpnSslEngine

extends JdkSslEngine
Class Inheritance
Static Imports
io.netty.util.internal.ObjectUtil.checkNotNull

Field Summary

Modifier and TypeField and Description
private static boolean

Constructor Summary

AccessConstructor and Description
pack-priv
JettyNpnSslEngine(SSLEngine engine, final JdkApplicationProtocolNegotiator applicationNegotiator, boolean server)

Deprecated as a consequence of JdkApplicationProtocolNegotiator being deprecated.

Method Summary

Modifier and TypeMethod and Description
public void
closeInbound()

Overrides io.netty.handler.ssl.JdkSslEngine.closeInbound.

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

Overrides io.netty.handler.ssl.JdkSslEngine.closeOutbound.

Signals that no more outbound application data will be sent on this SSLEngine.
pack-priv static boolean
private static void
Inherited from io.netty.handler.ssl.JdkSslEngine:
beginHandshakegetDelegatedTaskgetEnabledCipherSuitesgetEnabledProtocolsgetEnableSessionCreationgetHandshakeSessiongetHandshakeStatusgetNeedClientAuthgetNegotiatedApplicationProtocolgetPeerHostgetPeerPortgetSessiongetSSLParametersgetSupportedCipherSuitesgetSupportedProtocolsgetUseClientModegetWantClientAuthgetWrappedEngineisInboundDoneisOutboundDonesetEnabledCipherSuitessetEnabledProtocolssetEnableSessionCreationsetNeedClientAuthsetNegotiatedApplicationProtocolsetSSLParameterssetUseClientModesetWantClientAuthunwrapunwrapunwrapwrapwrapwrap

Field Detail

availableback to summary
private static boolean available

Constructor Detail

JettyNpnSslEngineback to summary
pack-priv JettyNpnSslEngine(SSLEngine engine, final JdkApplicationProtocolNegotiator applicationNegotiator, boolean server)

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.netty.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.netty.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
isAvailableback to summary
pack-priv static boolean isAvailable()
updateAvailabilityback to summary
private static void updateAvailability()