Package openid :: Package server :: Module server :: Class DiffieHellmanSHA1ServerSession
[frames] | no frames]

Class DiffieHellmanSHA1ServerSession

source code

object --+
         |
        DiffieHellmanSHA1ServerSession
Known Subclasses:
DiffieHellmanSHA256ServerSession

An object that knows how to handle association requests with the Diffie-Hellman session type.


See Also:
OpenID Specs, Mode: associate, AssociateRequest
Instance Methods [hide private]
  __init__(self, dh, consumer_pubkey)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  answer(self, secret)

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Class Methods [hide private]
DiffieHellmanSHA1ServerSession fromMessage(cls, message)

Static Methods [hide private]
  hash_func(s)

Class Variables [hide private]
str session_type = 'DH-SHA1'
The session_type for this association session.
  allowed_assoc_types = ['HMAC-SHA1']

Instance Variables [hide private]
long consumer_pubkey
The public key sent by the consumer in the associate request
DiffieHellman dh
The Diffie-Hellman algorithm values for this request

Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

hash_func(s)
Static Method

source code 

__init__(self, dh, consumer_pubkey)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

fromMessage(cls, message)
Class Method

source code 
Parameters:
  • message (openid.message.Message) - The associate request message
Returns: DiffieHellmanSHA1ServerSession
Raises:
  • ProtocolError - When parameters required to establish the session are missing.

answer(self, secret)

source code 

Class Variable Details [hide private]

session_type


The session_type for this association session.
Type:
str
Value:
'DH-SHA1'                                                              
      

allowed_assoc_types

Value:
['HMAC-SHA1']                                                          
      

Instance Variable Details [hide private]

consumer_pubkey


The public key sent by the consumer in the associate request
Type:
long

dh


The Diffie-Hellman algorithm values for this request
Type:
DiffieHellman