Table of Contents

Class ServerHello

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

Constructors

ServerHello(ProtocolVersion, byte[], byte[], int, IDictionary<int, byte[]>)

public ServerHello(ProtocolVersion version, byte[] random, byte[] sessionID, int cipherSuite, IDictionary<int, byte[]> extensions)

Parameters

version ProtocolVersion
random byte[]
sessionID byte[]
cipherSuite int
extensions IDictionary<int, byte[]>

ServerHello(byte[], int, IDictionary<int, byte[]>)

public ServerHello(byte[] sessionID, int cipherSuite, IDictionary<int, byte[]> extensions)

Parameters

sessionID byte[]
cipherSuite int
extensions IDictionary<int, byte[]>

Properties

CipherSuite

public int CipherSuite { get; }

Property Value

int

Extensions

public IDictionary<int, byte[]> Extensions { get; }

Property Value

IDictionary<int, byte[]>

Random

public byte[] Random { get; }

Property Value

byte[]

SessionID

public byte[] SessionID { get; }

Property Value

byte[]

Version

public ProtocolVersion Version { get; }

Property Value

ProtocolVersion

Methods

Encode(TlsContext, Stream)

Encode this ServerHello to a Stream.

public void Encode(TlsContext context, Stream output)

Parameters

context TlsContext

the TlsContext of the current connection.

output Stream

the Stream to encode to.

Exceptions

IOException

IsHelloRetryRequest()

public bool IsHelloRetryRequest()

Returns

bool

Parse(MemoryStream)

Parse a ServerHello from a MemoryStream.

public static ServerHello Parse(MemoryStream input)

Parameters

input MemoryStream

the MemoryStream to parse from.

Returns

ServerHello

a ServerHello object.

Exceptions

IOException