HandshakeStatus

An <code>SSLEngineResult</code> enum describing the current handshaking state of this <code>SSLEngine</code>.

@author Brad R. Wetmore

Values

ValueMeaning
NOT_HANDSHAKING

The <code>SSLEngine</code> is not currently handshaking.

FINISHED

The <code>SSLEngine</code> has just finished handshaking. <P> This value is only generated by a call to <code>SSLEngine.wrap()/unwrap()</code> when that call finishes a handshake. It is never generated by <code>SSLEngine.getHandshakeStatus()</code>.

@see SSLEngine#wrap(ByteBuffer, ByteBuffer) @see SSLEngine#unwrap(ByteBuffer, ByteBuffer) @see SSLEngine#getHandshakeStatus()

NEED_TASK

The <code>SSLEngine</code> needs the results of one (or more) delegated tasks before handshaking can continue.

@see SSLEngine#getDelegatedTask()

NEED_WRAP

The <code>SSLEngine</code> must send data to the remote side before handshaking can continue, so <code>SSLEngine.wrap()</code> should be called.

@see SSLEngine#wrap(ByteBuffer, ByteBuffer)

NEED_UNWRAP

The <code>SSLEngine</code> needs to receive data from the remote side before handshaking can continue.

Meta