Logo Search packages:      
Sourcecode: python-openid version File versions

openid::association::Association Class Reference

List of all members.


Detailed Description

This class represents an association between a server and a
consumer.  In general, users of this library will never see
instances of this object.  The only exception is if you implement
a custom C{L{OpenIDStore<openid.store.interface.OpenIDStore>}}.

If you do implement such a store, it will need to store the values
of the C{L{handle}}, C{L{secret}}, C{L{issued}}, C{L{lifetime}}, and
C{L{assoc_type}} instance variables.

@ivar handle: This is the handle the server gave this association.

@type handle: C{str}


@ivar secret: This is the shared secret the server generated for
    this association.

@type secret: C{str}


@ivar issued: This is the time this association was issued, in
    seconds since 00:00 GMT, January 1, 1970.  (ie, a unix
    timestamp)

@type issued: C{int}


@ivar lifetime: This is the amount of time this association is
    good for, measured in seconds since the association was
    issued.

@type lifetime: C{int}


@ivar assoc_type: This is the type of association this instance
    represents.  The only valid value of this field at this time
    is C{'HMAC-SHA1'}, but new types may be defined in the future.

@type assoc_type: C{str}


@sort: __init__, fromExpiresIn, getExpiresIn, __eq__, __ne__,
    handle, secret, issued, lifetime, assoc_type

Definition at line 197 of file association.py.


Public Member Functions

def __eq__
def __init__
def __ne__
def __repr__
def checkMessageSignature
def deserialize
def fromExpiresIn
def getExpiresIn
def getMessageSignature
def serialize
def sign
def signMessage

Public Attributes

 assoc_type
 handle
 issued
 lifetime
 secret

Static Public Attributes

list assoc_keys
tuple deserialize = classmethod(deserialize)
tuple expiresIn = property(getExpiresIn)
tuple fromExpiresIn = classmethod(fromExpiresIn)

Private Member Functions

def _makePairs

Private Attributes

 __dict__

Static Private Attributes

dictionary _macs

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index