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
versionProtocolVersionrandombyte[]sessionIDbyte[]cipherSuiteintextensionsIDictionary<int, byte[]>
ServerHello(byte[], int, IDictionary<int, byte[]>)
public ServerHello(byte[] sessionID, int cipherSuite, IDictionary<int, byte[]> extensions)
Parameters
sessionIDbyte[]cipherSuiteintextensionsIDictionary<int, byte[]>
Properties
CipherSuite
public int CipherSuite { get; }
Property Value
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 ServerHello to a Stream.
public void Encode(TlsContext context, Stream output)
Parameters
contextTlsContextthe TlsContext of the current connection.
outputStreamthe Stream to encode to.
Exceptions
IsHelloRetryRequest()
public bool IsHelloRetryRequest()
Returns
Parse(MemoryStream)
Parse a ServerHello from a MemoryStream.
public static ServerHello Parse(MemoryStream input)
Parameters
inputMemoryStreamthe MemoryStream to parse from.
Returns
- ServerHello
a ServerHello object.