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

Class ServerHello

source code


server_hello message

Instance Methods [hide private]
 
__init__(self)
Initialise ServerHello object
source code
 
__repr__(self)
repr(x)
source code
 
__str__(self)
str(x)
source code
 
addExtension(self, ext)
Add extension to internal list of extensions
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
TLSExtension
getExtension(self, extType)
Return extension of a given type, None if extension of given type is not present
source code
 
parse(self, p) source code
 
write(self) source code

Inherited from HandshakeMsg: postWrite

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

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
Returns the TACK extension

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Initialise ServerHello object

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

addExtension(self, ext)

source code 

Add extension to internal list of extensions

Parameters:
  • ext (TLSExtension) - extension to add to list

getExtension(self, extType)

source code 

Return extension of a given type, None if extension of given type is not present

Returns: TLSExtension
Raises:

Instance Variable Details [hide private]

certificate_type

certificate type selected by server
Get Method:
unreachable.certificate_type(self) - Returns the certificate type selected by server
Set Method:
unreachable.certificate_type(self, val) - Sets the certificate type supported
Type:
int

next_protos

list of advertised protocols in NPN extension
Get Method:
unreachable.next_protos(self) - Returns the advertised protocols in NPN extension
Set Method:
unreachable.next_protos(self, val) - Sets the advertised protocols in NPN extension
Type:
list of bytearray

next_protos_advertised

list of protocols advertised in NPN extension
Get Method:
unreachable.next_protos_advertised(self) - Returns the advertised protocols in NPN extension
Set Method:
unreachable.next_protos_advertised(self, val) - Sets the advertised protocols in NPN extension
Type:
list of bytearray

Property Details [hide private]

tackExt

Returns the TACK extension

Get Method:
unreachable.tackExt(self) - Returns the TACK extension
Set Method:
unreachable.tackExt(self, val) - Set the TACK extension