Package org.bouncycastle.tls
Class HeartbeatExtension
java.lang.Object
org.bouncycastle.tls.HeartbeatExtension
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(OutputStream output) Encode thisHeartbeatExtension
to anOutputStream
.short
getMode()
static HeartbeatExtension
parse
(InputStream input) Parse aHeartbeatExtension
from anInputStream
.
-
Field Details
-
mode
protected short mode
-
-
Constructor Details
-
HeartbeatExtension
public HeartbeatExtension(short mode)
-
-
Method Details
-
getMode
public short getMode() -
encode
Encode thisHeartbeatExtension
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
IOException
-
parse
Parse aHeartbeatExtension
from anInputStream
.- Parameters:
input
- theInputStream
to parse from.- Returns:
- a
HeartbeatExtension
object. - Throws:
IOException
-