public class HeartbeatMessage
extends java.lang.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,
      java.io.OutputStream output)
Encode this  
HeartbeatMessage to an OutputStream. | 
static HeartbeatMessage | 
parse(java.io.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, java.io.OutputStream output) throws java.io.IOException
HeartbeatMessage to an OutputStream.output - the OutputStream to encode to.java.io.IOExceptionpublic static HeartbeatMessage parse(java.io.InputStream input) throws java.io.IOException
HeartbeatMessage from an InputStream.input - the InputStream to parse from.HeartbeatMessage object.java.io.IOException