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

Class DiffieHellmanSHA1ServerSession

source code

object --+
         |
        DiffieHellmanSHA1ServerSession
Known Subclasses:

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


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

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

Class Methods
DiffieHellmanSHA1ServerSession
fromMessage(cls, message) source code
Static Methods
 
hash_func(s) source code
Class Variables
str session_type = 'DH-SHA1'
The session_type for this association session.
  allowed_assoc_types = ['HMAC-SHA1']
Instance Variables
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

Inherited from object: __class__

Method Details

__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.