Class ClientHello
- Namespace
- Org.BouncyCastle.Tls
- Assembly
- BouncyCastle.Cryptography.dll
public sealed class ClientHello
- Inheritance
-
ClientHello
- Inherited Members
Constructors
ClientHello(ProtocolVersion, byte[], byte[], byte[], int[], IDictionary<int, byte[]>, int)
public ClientHello(ProtocolVersion version, byte[] random, byte[] sessionID, byte[] cookie, int[] cipherSuites, IDictionary<int, byte[]> extensions, int bindersSize)
Parameters
versionProtocolVersionrandombyte[]sessionIDbyte[]cookiebyte[]cipherSuitesint[]extensionsIDictionary<int, byte[]>bindersSizeint
Properties
BindersSize
public int BindersSize { get; }
Property Value
CipherSuites
public int[] CipherSuites { get; }
Property Value
- int[]
Cookie
public byte[] Cookie { get; }
Property Value
- byte[]
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
Methods
Encode(TlsContext, Stream)
Encode this ClientHello to a Stream.
public void Encode(TlsContext context, Stream output)
Parameters
contextTlsContextthe TlsContext of the current connection.
outputStreamthe Stream to encode to.
Exceptions
Parse(MemoryStream, Stream)
Parse a ClientHello from a MemoryStream.
public static ClientHello Parse(MemoryStream messageInput, Stream dtlsOutput)
Parameters
messageInputMemoryStreamthe MemoryStream to parse from.
dtlsOutputStreamfor DTLS this should be non-null; the input is copied to this Stream, minus the cookie field.
Returns
- ClientHello
a ClientHello object.