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

Type DiffieHellmanServerSession

object --+
         |
        DiffieHellmanServerSession


An object that knows how to handle association requests with the Diffie-Hellman session type.
See Also:
OpenID Specs, Mode: associate, AssociateRequest
Method Summary
  __init__(self, dh, consumer_pubkey)
  answer(self, secret)
DiffieHellmanServerSession fromQuery(cls, query)
(Class method)
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Instance Variable Summary
long consumer_pubkey: The public key sent by the consumer in the associate request
DiffieHellman dh: The Diffie-Hellman algorithm values for this request

Class Variable Summary
str session_type: The session_type for this association session.

Class Method Details

fromQuery(cls, query)

Parameters:
query - The associate request's query parameters
           (type={str:str})
Returns:
DiffieHellmanServerSession
Raises:
ProtocolError - When parameters required to establish the session are missing.

Instance Variable Details

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

Class Variable Details

session_type

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

Generated by Epydoc 2.1 on Fri Dec 14 11:14:09 2007 http://epydoc.sf.net