Package org.bouncycastle.crypto.tls
Class HeartbeatMessage
- java.lang.Object
-
- org.bouncycastle.crypto.tls.HeartbeatMessage
-
public class HeartbeatMessage extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected int
paddingLength
protected byte[]
payload
protected short
type
-
Constructor Summary
Constructors Constructor Description HeartbeatMessage(short type, byte[] payload, int paddingLength)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(TlsContext context, java.io.OutputStream output)
Encode thisHeartbeatMessage
to anOutputStream
.static HeartbeatMessage
parse(java.io.InputStream input)
Parse aHeartbeatMessage
from anInputStream
.
-
-
-
Method Detail
-
encode
public void encode(TlsContext context, java.io.OutputStream output) throws java.io.IOException
Encode thisHeartbeatMessage
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
java.io.IOException
-
parse
public static HeartbeatMessage parse(java.io.InputStream input) throws java.io.IOException
Parse aHeartbeatMessage
from anInputStream
.- Parameters:
input
- theInputStream
to parse from.- Returns:
- a
HeartbeatMessage
object. - Throws:
java.io.IOException
-
-