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 intpaddingLengthprotected byte[]payloadprotected shorttype
-
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 voidencode(TlsContext context, java.io.OutputStream output)Encode thisHeartbeatMessageto anOutputStream.static HeartbeatMessageparse(java.io.InputStream input)Parse aHeartbeatMessagefrom anInputStream.
-
-
-
Method Detail
-
encode
public void encode(TlsContext context, java.io.OutputStream output) throws java.io.IOException
Encode thisHeartbeatMessageto anOutputStream.- Parameters:
output- theOutputStreamto encode to.- Throws:
java.io.IOException
-
parse
public static HeartbeatMessage parse(java.io.InputStream input) throws java.io.IOException
Parse aHeartbeatMessagefrom anInputStream.- Parameters:
input- theInputStreamto parse from.- Returns:
- a
HeartbeatMessageobject. - Throws:
java.io.IOException
-
-