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

type StatusRequestExtension

source code


Handling of the Certificate Status Request extension from RFC 6066.

Instance Methods [hide private]
 
__init__(self)
Creates a generic TLS extension.
source code
str
__repr__(self)
Create programmer-readable representation of object
source code
TLSExtension
create(self, status_type=1, responder_id_list=(), request_extensions='')
Create an instance of StatusRequestExtension with specified options.
source code
StatusRequestExtension
parse(self, parser)
Parse the extension from on the wire format.
source code

Inherited from TLSExtension: __eq__, write

Inherited from TLSExtension (private): _newCreate, _oldCreate

Static Methods [hide private]

Inherited from TLSExtension (private): _parseExt

Class Variables [hide private]
Instance Variables [hide private]
bytearray request_extensions
DER encoded list of OCSP extensions, as defined in RFC 2560
list of bytearray responder_id_list
list of DER encoded OCSP responder identifiers that the client trusts
int status_type
type of the status request

Inherited from TLSExtension: extType, serverType

Properties [hide private]
bytearray extData
a byte array containing the value of the extension as to be written on the wire
Method Details [hide private]

__init__(self)
(Constructor)

source code 

Creates a generic TLS extension.

You'll need to use create or parse methods to create an extension that is actually usable.

Parameters:
  • server - whether to select ClientHello or ServerHello version for parsing
  • extType - type of extension encoded as an integer, to be used by subclasses
Overrides: TLSExtension.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

Create programmer-readable representation of object

Returns: str
Overrides: TLSExtension.__repr__

create(self, status_type=1, responder_id_list=(), request_extensions='')

source code 

Create an instance of StatusRequestExtension with specified options.

Parameters:
  • status_type (int) - type of status returned
  • responder_id_list (list) - list of encoded OCSP responder identifiers that the client trusts
  • request_extensions (bytearray) - DER encoding of requested OCSP extensions
Returns: TLSExtension
Overrides: TLSExtension.create

parse(self, parser)

source code 

Parse the extension from on the wire format.

Parameters:
Returns: StatusRequestExtension
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
Type:
bytearray