Signals that no more inbound network data will be sent
to this <code>SSLEngine</code>.
<P>
If the application initiated the closing process by calling
{@link #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 (<A
HREF="http://www.ietf.org/rfc/rfc2246.txt">RFC 2246</A>) for more
information on waiting for closure alerts.) In such cases, this
method need not be called.
<P>
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 data stream is reached.
This ensures closure of the inbound side, and checks that the
peer followed the SSL/TLS close procedure properly, thus
detecting possible truncation attacks.
<P>
This method is idempotent: if the inbound side has already
been closed, this method does not do anything.
<P>
{@link #wrap(ByteBuffer, ByteBuffer) wrap()} should be
called to flush any remaining handshake data.
@throws SSLException
if this engine has not received the proper SSL/TLS close
notification message from the peer.
Signals that no more inbound network data will be sent to this <code>SSLEngine</code>. <P> If the application initiated the closing process by calling {@link #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 (<A HREF="http://www.ietf.org/rfc/rfc2246.txt">RFC 2246</A>) for more information on waiting for closure alerts.) In such cases, this method need not be called. <P> 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 data stream is reached. This ensures closure of the inbound side, and checks that the peer followed the SSL/TLS close procedure properly, thus detecting possible truncation attacks. <P> This method is idempotent: if the inbound side has already been closed, this method does not do anything. <P> {@link #wrap(ByteBuffer, ByteBuffer) wrap()} should be called to flush any remaining handshake data.
@throws SSLException if this engine has not received the proper SSL/TLS close notification message from the peer.
@see #isInboundDone() @see #isOutboundDone()