Package tlslite :: Module messages :: Class ServerHello
[hide private]
[frames] | no frames]

type ServerHello

source code


Handling of Server Hello messages.

Instance Methods [hide private]
 
__init__(self)
Initialise ServerHello object.
source code
 
__repr__(self) source code
 
__str__(self) source code
 
create(self, version, random, session_id, cipher_suite, certificate_type=None, tackExt=None, next_protos_advertised=None, extensions=None)
Initialize the object for deserialisation.
source code
 
parse(self, p) source code
 
write(self) source code

Inherited from HelloMessage: addExtension, getExtension

Inherited from HelloMessage (private): _addExt, _addOrRemoveExt, _removeExt

Inherited from HandshakeMsg: postWrite

Instance Variables [hide private]
int certificate_type
certificate type selected by server
int cipher_suite
server selected cipher_suite
int compression_method
server selected compression method
list extensions
list of TLS extensions present in server_hello message, see TLSExtension and child classes for exact examples
list of bytearray next_protos
list of advertised protocols in NPN extension
list of bytearray next_protos_advertised
list of protocols advertised in NPN extension
bytearray random
server random value
tuple server_version
protocol version encoded as two int tuple
bytearray session_id
session identifier for resumption
Properties [hide private]
  tackExt
Return the TACK extension.
Method Details [hide private]

__init__(self)
(Constructor)

source code 

Initialise ServerHello object.

Overrides: HandshakeMsg.__init__

__repr__(self)
(Representation operator)

source code 
Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
Overrides: object.__str__
(inherited documentation)

Instance Variable Details [hide private]

certificate_type

certificate type selected by server
Type:
int

next_protos

list of advertised protocols in NPN extension
Type:
list of bytearray

next_protos_advertised

list of protocols advertised in NPN extension
Type:
list of bytearray

Property Details [hide private]

tackExt

Return the TACK extension.