public class HeartbeatMessage extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
paddingLength |
protected byte[] |
payload |
protected short |
type |
| Constructor and Description |
|---|
HeartbeatMessage(short type,
byte[] payload,
int paddingLength) |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(TlsContext context,
OutputStream output)
Encode this
HeartbeatMessage to an OutputStream. |
static HeartbeatMessage |
parse(InputStream input)
Parse a
HeartbeatMessage from an InputStream. |
protected short type
protected byte[] payload
protected int paddingLength
public HeartbeatMessage(short type,
byte[] payload,
int paddingLength)
public void encode(TlsContext context, OutputStream output) throws IOException
HeartbeatMessage to an OutputStream.output - the OutputStream to encode to.IOExceptionpublic static HeartbeatMessage parse(InputStream input) throws IOException
HeartbeatMessage from an InputStream.input - the InputStream to parse from.HeartbeatMessage object.IOExceptionCopyright © 2015–2021 The veraPDF Consortium. All rights reserved.