Package tlslite :: Module extensions :: Class TACKExtension
[hide private]
[frames] | no frames]

Class TACKExtension

source code


This class handles the server side TACK extension (see draft-perrin-tls-tack-02).

Nested Classes [hide private]
  TACK
Implementation of the single TACK
Instance Methods [hide private]
 
__init__(self)
Create an instance of TACKExtension
source code
str
__repr__(self)
Create a programmer readable representation of TACK extension
source code
TACKExtension
create(self, tacks, activation_flags)
Initialize the insance of TACKExtension
source code
TACKExtension
parse(self, p)
Parse the extension from on the wire format
source code

Inherited from TLSExtension: __eq__, write

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

Class Variables [hide private]
Instance Variables [hide private]
int activation_flags
activation flags for the tacks
list tacks
list of TACK's supported by server

Inherited from TLSExtension: serverType

Properties [hide private]
bytearray extData
a byte array containing the value of the extension as to be written on the wire
int extType
a 2^16-1 limited integer specifying the type of the extension that it contains, e.g.

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Create an instance of TACKExtension

See also: create and parse

Parameters:
  • server - whatever to select ClientHello or ServerHello version for parsing
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

Create a programmer readable representation of TACK extension

Returns: str
Overrides: object.__repr__

create(self, tacks, activation_flags)

source code 

Initialize the insance of TACKExtension

Parameters:
  • extType - type of the extension encoded as an integer between 0 and 2^16-1
  • data - raw data representing extension on the wire
Returns: TACKExtension
Overrides: TLSExtension.create

parse(self, p)

source code 

Parse the extension from on the wire format

Parameters:
Returns: TACKExtension
Raises:
  • SyntaxError - when the size of the passed element doesn't match the internal representation
Overrides: TLSExtension.parse

Property Details [hide private]

extData

a byte array containing the value of the extension as to be written on the wire
Get Method:
unreachable.extData(self) - Return the raw data encoding of the extension
Type:
bytearray

extType

a 2^16-1 limited integer specifying the type of the extension that it contains, e.g. 0 indicates server name extension
Get Method:
unreachable.extType(self) - Returns the type of TLS extension, in this case - 62208
Type:
int