public final class TLSPlaintextRecord extends AbstractTLSRecord
Modifier and Type | Field and Description |
---|---|
(package private) static int |
ALERT_LENGTH |
(package private) static int |
ALERT_LEVEL_FATAL |
(package private) static int |
ALERT_LEVEL_WARNING |
(package private) static int |
ALERT_TYPE_CLOSE_NOTIFY |
(package private) static int |
CHANGE_CIPHER_SPEC_LENGTH |
(package private) static int |
CHANGE_CIPHER_SPEC_TYPE_CHANGED |
static int |
HEADER_LENGTH |
private int |
m_nextHandshakeRecordOffset
The internal offset, which is increased every time a handshake record is
retrieved from the payload.
|
static int |
MAX_PAYLOAD_SIZE |
(package private) static int |
TYPE_ALERT |
(package private) static int |
TYPE_APPLICATION_DATA |
(package private) static int |
TYPE_CHANGE_CIPHER_SPEC |
(package private) static int |
TYPE_HANDSHAKE |
m_Data, m_dataLen, m_Header, m_Type
Constructor and Description |
---|
TLSPlaintextRecord()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clean() |
int |
getHeaderLength() |
int |
getMaxPayloadSize() |
TLSHandshakeRecord |
getNextHandshakeRecord()
Returns the next handshake record from inside the payload and increases
the internal offset accordingly.
|
boolean |
hasMoreHandshakeRecords()
Returns true if there are more handshake records in the TLS record.
|
void |
setLength(int len)
Sets the length of the TLS record.
|
static final int TYPE_CHANGE_CIPHER_SPEC
static final int TYPE_ALERT
static final int TYPE_HANDSHAKE
static final int TYPE_APPLICATION_DATA
static final int CHANGE_CIPHER_SPEC_TYPE_CHANGED
static final int CHANGE_CIPHER_SPEC_LENGTH
static final int ALERT_LEVEL_WARNING
static final int ALERT_LEVEL_FATAL
static final int ALERT_TYPE_CLOSE_NOTIFY
static final int ALERT_LENGTH
public static final int HEADER_LENGTH
public static final int MAX_PAYLOAD_SIZE
private int m_nextHandshakeRecordOffset
getNextHandshakeRecord
public void clean()
public int getHeaderLength()
getHeaderLength
in class AbstractTLSRecord
public int getMaxPayloadSize()
public void setLength(int len)
len
- New length of the TLS record.public boolean hasMoreHandshakeRecords()
public TLSHandshakeRecord getNextHandshakeRecord()
TLSHandshakeRecord
in the payload.Copyright © 2023. All rights reserved.