public class TLSMessage extends Object implements ProfileMessage
Handshake message between client and server to set up the TLS handshake.
This class represents the handshake messages exchanged between the client and the server to agree on the initiation of the TLS handshake.
When the client sends the TLSMessage(READY), it must not send any
further traffic on the underlying transport service until a corresponding
reply message, either TLSMessage(PROCEED) or an
indication message, is received.
When the client receives a TLSMessage(PROCEED) in reply to its
TLSMessage(READY) it immediately begins the underlying negotiation
process for TLS transport security.
When the server receives the TLSMessage(READY), it must not send
any further traffic on the underlying transport service until it generates
a corresponding reply. If the server decides to allow TLS transport security
negotiation it sends a TLSMessage(PROCEED) and awaits the underlying
negotiation process for TLS transport security. Otherwise, the server sends
an indication as to why the operation failed.
The status attribute takes one of the two values:
HandshakeBeginMessage,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static int |
PROCEED
This status code is used by a server to indicate that it allows the
client to proceed with the TLS handshake.
|
static int |
READY
This status code is used by a client to indicate that it is ready to
start the TLS handshake.
|
| Constructor and Description |
|---|
TLSMessage(int status)
Constructs a new TLSMessage with the specified status.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getProfileName()
The profile name.
|
int |
getStatus()
The status of the current TLS transport security negotiation.
|
public static final int READY
public static final int PROCEED
public TLSMessage(int status)
status - the status of the current TLS transport security
negotiation.public int getStatus()
public String getProfileName()
getProfileName in interface ProfileMessageCopyright © 2019 Terracotta, Inc.. All rights reserved.