Skip to content

Most visited

Recently visited

navigation

SSLEngineResult.HandshakeStatus

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

java.lang.Object
   ↳ java.lang.Enum<javax.net.ssl.SSLEngineResult.HandshakeStatus>
     ↳ javax.net.ssl.SSLEngineResult.HandshakeStatus


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

Summary

Enum values

SSLEngineResult.HandshakeStatus  FINISHED

The SSLEngine has just finished handshaking. 

SSLEngineResult.HandshakeStatus  NEED_TASK

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

SSLEngineResult.HandshakeStatus  NEED_UNWRAP

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

SSLEngineResult.HandshakeStatus  NEED_WRAP

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

SSLEngineResult.HandshakeStatus  NOT_HANDSHAKING

The SSLEngine is not currently handshaking. 

Public methods

static SSLEngineResult.HandshakeStatus valueOf(String name)
static final HandshakeStatus[] values()

Inherited methods

From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum values

FINISHED

added in API level 1
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().

See also:

NEED_TASK

added in API level 1
SSLEngineResult.HandshakeStatus NEED_TASK

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

See also:

NEED_UNWRAP

added in API level 1
SSLEngineResult.HandshakeStatus NEED_UNWRAP

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

NEED_WRAP

added in API level 1
SSLEngineResult.HandshakeStatus NEED_WRAP

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

See also:

NOT_HANDSHAKING

added in API level 1
SSLEngineResult.HandshakeStatus NOT_HANDSHAKING

The SSLEngine is not currently handshaking.

Public methods

valueOf

added in API level 1
SSLEngineResult.HandshakeStatus valueOf (String name)

Parameters
name String

Returns
SSLEngineResult.HandshakeStatus

values

added in API level 1
HandshakeStatus[] values ()

Returns
HandshakeStatus[]

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)