org.bouncycastle.crypto.tls
Class HeartbeatMessage
java.lang.Object
|
+--org.bouncycastle.crypto.tls.HeartbeatMessage
Deprecated. Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).
- public class HeartbeatMessage
- extends java.lang.Object
Field Summary |
protected int |
paddingLength
Deprecated. |
protected byte[] |
payload
Deprecated. |
protected short |
type
Deprecated. |
Constructor Summary |
HeartbeatMessage(short type,
byte[] payload,
int paddingLength)
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
protected short type
- Deprecated.
payload
protected byte[] payload
- Deprecated.
paddingLength
protected int paddingLength
- Deprecated.
HeartbeatMessage
public HeartbeatMessage(short type,
byte[] payload,
int paddingLength)
- Deprecated.
encode
public void encode(TlsContext context,
java.io.OutputStream output)
throws java.io.IOException
- Deprecated.
- Encode this
HeartbeatMessage
to an OutputStream
.
- Parameters:
output
- the OutputStream
to encode to.- Throws:
java.io.IOException
-
parse
public static HeartbeatMessage parse(java.io.InputStream input)
throws java.io.IOException
- Deprecated.
- Parse a
HeartbeatMessage
from an InputStream
.
- Parameters:
input
- the InputStream
to parse from.- Returns:
- a
HeartbeatMessage
object. - Throws:
java.io.IOException
-