Name
SSLEngineResult.HandshakeStatus
Synopsis
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( )orunwrap( )call that generated this value.-
NEED_WRAP The
SSLEngineneeds to send more handshake data, so a call towrap( )is necessary.-
NEED_UNWRAP The
SSLEngineneeds to receive more handshake data, so a call tounwrap( )is necessary.-
NEED_TASK The
SSLEngineneeds to perform an authentication or related task, so you must repeatedly callgetDelegatedTask( )andrun( )anyRunnableobjects 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( ); }
Passed To
SSLEngineResult.SSLEngineResult( )
Returned By
SSLEngine.getHandshakeStatus( ),
SSLEngineResult.getHandshakeStatus( )
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access