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

Class DiffieHellmanServerSession

source code

object --+
         |
        DiffieHellmanServerSession

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]
DiffieHellmanServerSession fromQuery(cls, query)

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

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]

__init__(self, dh, consumer_pubkey)
(Constructor)

source code 

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

fromQuery(cls, query)
Class Method

source code 
Parameters:
  • query ({str:str}) - The associate request's query parameters
Returns: DiffieHellmanServerSession
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'                                                              
      

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