SSLEngineResult.HandshakeStatus (Java SE 15 & JDK 15) (original) (raw)
All Implemented Interfaces:
[Serializable](../../../java/io/Serializable.html "interface in java.io")
, [Comparable](../../../java/lang/Comparable.html "interface in java.lang")<[SSLEngineResult.HandshakeStatus](SSLEngineResult.HandshakeStatus.html "enum in javax.net.ssl")>
, [Constable](../../../java/lang/constant/Constable.html "interface in java.lang.constant")
Enclosing class:
public static enum SSLEngineResult.HandshakeStatus extends Enum<SSLEngineResult.HandshakeStatus>
An SSLEngineResult
enum describing the current handshaking state of this SSLEngine
.
Since:
1.5
Nested Class Summary
Enum Constant Summary
Enum Constants
Enum Constant | Description |
---|---|
FINISHED | The SSLEngine has just finished handshaking. |
NEED_TASK | The SSLEngine needs the results of one (or more) delegated tasks before handshaking can continue. |
NEED_UNWRAP | The SSLEngine needs to receive data from the remote side before handshaking can continue. |
NEED_UNWRAP_AGAIN | The SSLEngine needs to unwrap before handshaking can continue. |
NEED_WRAP | The SSLEngine must send data to the remote side before handshaking can continue, so SSLEngine.wrap() should be called. |
NOT_HANDSHAKING | The SSLEngine is not currently handshaking. |
Method Summary
Methods declared in class java.lang.Enum
[clone](../../../java/lang/Enum.html#clone%28%29), [compareTo](../../../java/lang/Enum.html#compareTo%28E%29), [describeConstable](../../../java/lang/Enum.html#describeConstable%28%29), [equals](../../../java/lang/Enum.html#equals%28java.lang.Object%29), [finalize](../../../java/lang/Enum.html#finalize%28%29), [getDeclaringClass](../../../java/lang/Enum.html#getDeclaringClass%28%29), [hashCode](../../../java/lang/Enum.html#hashCode%28%29), [name](../../../java/lang/Enum.html#name%28%29), [ordinal](../../../java/lang/Enum.html#ordinal%28%29), [toString](../../../java/lang/Enum.html#toString%28%29), [valueOf](../../../java/lang/Enum.html#valueOf%28java.lang.Class,java.lang.String%29)
Enum Constant Details
NOT_HANDSHAKING
The
SSLEngine
is not currently handshaking.FINISHED
The
SSLEngine
has just finished handshaking.
This value is only generated by a call toSSLEngine.wrap()/unwrap()
when that call finishes a handshake. It is never generated bySSLEngine.getHandshakeStatus()
.
See Also:
SSLEngine.wrap(ByteBuffer, ByteBuffer), SSLEngine.unwrap(ByteBuffer, ByteBuffer), SSLEngine.getHandshakeStatus()NEED_TASK
The
SSLEngine
needs the results of one (or more) delegated tasks before handshaking can continue.
See Also:
SSLEngine.getDelegatedTask()NEED_WRAP
The
SSLEngine
must send data to the remote side before handshaking can continue, soSSLEngine.wrap()
should be called.
See Also:
SSLEngine.wrap(ByteBuffer, ByteBuffer)NEED_UNWRAP
The
SSLEngine
needs to receive data from the remote side before handshaking can continue.NEED_UNWRAP_AGAIN
The
SSLEngine
needs to unwrap before handshaking can continue.
This value is used to indicate that not-yet-interpreted data has been previously received from the remote side, and does not need to be received again.
This handshake status only applies to DTLS.
Since:
9Method Details
values
Returns an array containing the constants of this enum type, in the order they are declared.
Returns:
an array containing the constants of this enum type, in the order they are declaredvalueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Parameters:
name
- the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
[IllegalArgumentException](../../../java/lang/IllegalArgumentException.html "class in java.lang")
- if this enum type has no constant with the specified name
[NullPointerException](../../../java/lang/NullPointerException.html "class in java.lang")
- if the argument is null