public class HandshakeState extends Object
ContentType and HandshakeType with an flag
to mark the state as optional.| Constructor and Description |
|---|
HandshakeState(ContentType contentType)
Create state for none handshake messages.
|
HandshakeState(HandshakeType handshakeType)
Create state for specific handshake messages.
|
HandshakeState(HandshakeType handshakeType,
boolean optional)
Create optional state for specific handshake messages.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
expect(DTLSMessage message)
Check, if message is expected.
|
ContentType |
getContentType()
Get record content type of state.
|
HandshakeType |
getHandshakeType()
Get handshake message type.
|
boolean |
isOptional()
Check, if state is optional.
|
String |
toString() |
static String |
toString(DTLSMessage message)
Create a message description related to a handshake state.
|
public HandshakeState(ContentType contentType)
contentType - record content type,
ContentType.CHANGE_CIPHER_SPEC.public HandshakeState(HandshakeType handshakeType)
handshakeType - specifc handshake message typepublic HandshakeState(HandshakeType handshakeType, boolean optional)
handshakeType - specifc handshake message typeoptional - marker for optional states. true, if state is
isOptional().public ContentType getContentType()
public HandshakeType getHandshakeType()
nul, for none
handshake messagespublic boolean isOptional()
true, if optional, false, otherwise.public boolean expect(DTLSMessage message)
message - message to checktrue, if message is expected, false, if not.public static String toString(DTLSMessage message)
message - messageCopyright © 2023 Eclipse Foundation. All rights reserved.