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

Type DiffieHellmanSHA1ServerSession

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
Method Summary
  __init__(self, dh, consumer_pubkey)
  answer(self, secret)
DiffieHellmanSHA1ServerSession fromMessage(cls, message)
(Class method)
  hash_func(s)
(Static 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
list allowed_assoc_types = ['HMAC-SHA1']
str session_type: The session_type for this association session.

Class Method Details

fromMessage(cls, message)

Parameters:
message - The associate request message
           (type=openid.message.Message)
Returns:
DiffieHellmanSHA1ServerSession
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

allowed_assoc_types

Type:
list
Value:
['HMAC-SHA1']                                                          

session_type

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

Generated by Epydoc 2.1 on Fri Dec 14 16:10:52 2007 http://epydoc.sf.net