SSLEngineResult.HandshakeStatus

  • SSLEngineResult.HandshakeStatus is an enum that describes the current handshaking state of an SSLEngine.

  • It includes values like FINISHED, NEED_TASK, NEED_UNWRAP, NEED_WRAP, and NOT_HANDSHAKING to represent different stages of the handshake process.

  • These values indicate whether the handshake is complete, requires delegated tasks, needs data exchange, or is not currently in progress.

  • SSLEngineResult.HandshakeStatus helps in managing and understanding the SSL/TLS handshake process within an application.

public static final enum SSLEngineResult.HandshakeStatus extends Enum<SSLEngineResult.HandshakeStatus>

An SSLEngineResult enum describing the current handshaking state of this SSLEngine.

Inherited Method Summary

Enum Values

public static final SSLEngineResult.HandshakeStatus FINISHED

The SSLEngine has just finished handshaking.

This value is only generated by a call to SSLEngine.wrap()/unwrap() when that call finishes a handshake. It is never generated by SSLEngine.getHandshakeStatus().

public static final SSLEngineResult.HandshakeStatus NEED_TASK

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

public static final SSLEngineResult.HandshakeStatus NEED_UNWRAP

The SSLEngine needs to receive data from the remote side before handshaking can continue.

public static final SSLEngineResult.HandshakeStatus NEED_WRAP

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

public static final SSLEngineResult.HandshakeStatus NOT_HANDSHAKING

The SSLEngine is not currently handshaking.