Package Peach :: Package Generators :: Module stun :: Class StunPasswordAttribute
[hide private]

Class StunPasswordAttribute

source code


PASSWORD

The PASSWORD attribute is used in Shared Secret Responses. It is always present in a Shared Secret Response, along with the USERNAME.

The value of PASSWORD is a variable length value that is to be used as a shared secret. Its length MUST be a multiple of 4 (measured in bytes) in order to guarantee alignment of attributes on word boundaries.

Instance Methods [hide private]
 
__init__(self, group, password) source code

Inherited from StunAttribute: getRawValue

Inherited from StunAttribute (private): _getValue

Class Variables [hide private]

Inherited from StunAttribute: CHANGED_ADDRESS, CHANGE_REQUEST, ERROR_CODE, MAPPED_ADDRESS, MESSAGE_INTEGRITY, PASSWORD, REFLECTED_FROM, RESPONSE_ADDRESS, SOURCE_ADDRESS, UNKNOWN_ATTRIBUTES, USERNAME

Inherited from StunAttribute (private): _generator, _length, _type

Method Details [hide private]

__init__(self, group, password)
(Constructor)

source code 
Parameters:
  • group (Group) - Group to use
  • password (Generator) - Password
Overrides: StunAttribute.__init__