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
SSLEngine
needs to send more handshake data, so a call towrap( )
is necessary.-
NEED_UNWRAP
The
SSLEngine
needs to receive more handshake data, so a call tounwrap( )
is necessary.-
NEED_TASK
The
SSLEngine
needs to perform an authentication or related task, so you must repeatedly callgetDelegatedTask( )
andrun( )
anyRunnable
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( ); }
Passed To
SSLEngineResult.SSLEngineResult( )
Returned By
SSLEngine.getHandshakeStatus( )
,
SSLEngineResult.getHandshakeStatus( )
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.