Table of Contents

Class HeartbeatMessage

Namespace
Org.BouncyCastle.Tls
Assembly
BouncyCastle.Cryptography.dll
public sealed class HeartbeatMessage
Inheritance
HeartbeatMessage
Inherited Members

Constructors

HeartbeatMessage(short, byte[], byte[])

public HeartbeatMessage(short type, byte[] payload, byte[] padding)

Parameters

type short
payload byte[]
padding byte[]

Properties

PaddingLength

public int PaddingLength { get; }

Property Value

int

Payload

public byte[] Payload { get; }

Property Value

byte[]

Type

public short Type { get; }

Property Value

short

Methods

Create(TlsContext, short, byte[])

public static HeartbeatMessage Create(TlsContext context, short type, byte[] payload)

Parameters

context TlsContext
type short
payload byte[]

Returns

HeartbeatMessage

Create(TlsContext, short, byte[], int)

public static HeartbeatMessage Create(TlsContext context, short type, byte[] payload, int paddingLength)

Parameters

context TlsContext
type short
payload byte[]
paddingLength int

Returns

HeartbeatMessage

Encode(Stream)

Encode this HeartbeatMessage to a Stream.

public void Encode(Stream output)

Parameters

output Stream

the Stream to encode to.

Exceptions

IOException

Parse(Stream)

Parse a HeartbeatMessage from a Stream.

public static HeartbeatMessage Parse(Stream input)

Parameters

input Stream

the Stream to parse from.

Returns

HeartbeatMessage

a HeartbeatMessage object.

Exceptions

IOException