| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
Association
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 OpenIDStore.
If you do implement such a store, it will need to store the values of
the handle, secret, issued, lifetime, and assoc_type instance variables.
| Instance Methods | |||
|
|||
int
|
|
||
bool
|
|
||
bool
|
|
||
| str |
|
||
| str |
|
||
| str |
|
||
| openid.message.Message |
|
||
|
|||
|
|||
|
Inherited from |
|||
| Class Methods | |||
|
|||
|
|||
| Class Variables | |
assoc_keys =
|
|
| Instance Variables | |
str
|
handle This is the handle the server gave this association. |
str
|
secret This is the shared secret the server generated for this association. |
int
|
issued This is the time this association was issued, in seconds since 00:00 GMT, January 1, 1970. |
int
|
lifetime This is the amount of time this association is good for, measured in seconds since the association was issued. |
str
|
assoc_type This is the type of association this instance represents. |
| Properties | |
int
|
expiresIn This returns the number of seconds this association is still valid for, or 0 if the association is no longer valid.
|
|
Inherited from |
|
| Method Details |
This is the standard constructor for creating an association.
|
This is an alternate constructor used by the OpenID consumer library
to create associations.
|
This returns the number of seconds this association is still valid
for, or
|
This checks to see if two
|
This checks to see if two
|
Convert an association to KV form.
|
Parse an association as stored by serialize(). inverse of serialize
|
Generate a signature for a sequence of (key, value) pairs
|
Return the signature of a message. If I am not a sign-all association, the message must have a signed list.
|
Add a signature (and a signed list) to a message.
|
Given a message with a signature, calculate a new signature and return whether it matches the signature in the message.
|
repr(x)
|
| Class Variable Details |
assoc_keys
|
| Instance Variable Details |
issuedThis is the time this association was issued, in seconds since 00:00 GMT, January 1, 1970. (ie, a unix timestamp)
|
assoc_typeThis is the type of association this instance represents. The only valid value of this field at this time is'HMAC-SHA1', but new
types may be defined in the future.
|
| Property Details |
expiresInThis returns the number of seconds this association is still valid
for, or
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Jul 29 15:11:27 2010 | http://epydoc.sourceforge.net |