The
constants
defined by this enumerated type specify the
handshake status of the
SSLEngine and often specify the action your code
must take next in order to ensure correct operation. The values are
the following:
NOT_HANDSHAKING
Handshaking is not currently in progress.
FINISHED
Handshaking just completed as a result of the wrap(
) or unwrap( ) call that generated this
value.
NEED_WRAP
The SSLEngine needs to send more handshake data,
so a call to wrap( ) is necessary.
NEED_UNWRAP
The SSLEngine needs to receive more handshake
data, so a call to unwrap( ) is necessary.
NEED_TASK
The SSLEngine needs to perform an authentication
or related task, so you must repeatedly call
getdelegatedTask( ) and run( )
any Runnable objects it returns.
public enum
SSLEngineResult.HandshakeStatus {
// Enumerated Constants
NOT_HANDSHAKING ,
FINISHED ,
NEED_TASK ,
NEED_WRAP ,
NEED_UNWRAP ;
// Public Class Methods
public static SSLEngineResult.HandshakeStatus
valueOf (String
name );
public static final SSLEngineResult.HandshakeStatus[ ]
values ( );
}