| Home | Trees | Index | Help |
|
|---|
| Package openid :: Package store :: Module interface :: Class OpenIDStore |
|
object --+
|
OpenIDStore
DumbStore,
FileOpenIDStore,
SQLStore| Method Summary | |
|---|---|
NoneType
|
This method puts a object into storage,
retrievable by server URL and handle. |
or
NoneType
|
This method returns an object from storage that
matches the server URL and, if specified, handle. |
bool or int
|
This method removes the matching association if it's found, and returns whether the association was removed or not. |
NoneType
|
Stores a nonce. |
bool or int
|
This method is called when the library is attempting to use a nonce. |
str
|
This method returns a key used to sign the tokens, to ensure that they haven't been tampered with in transit. |
bool
|
This method must return True if the store is a
dumb-mode-style store. |
Inherited from object:
__init__,
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
| |
| Class Variable Summary | |
|---|---|
int |
AUTH_KEY_LEN: The length of the auth key that should be returned by the method. |
| Method Details |
|---|
storeAssociation(self, server_url, association)This method puts a object into storage,
retrievable by server URL and handle.
|
getAssociation(self, server_url, handle=None)This method returns an If no handle is specified, the store may return any association which matches the server URL. If multiple associations are valid, the recommended return value for this method is the one that will remain valid for the longest duration. This method is allowed (and encouraged) to garbage collect expired associations when found. This method must not return expired associations.
|
removeAssociation(self, server_url, handle)This method removes the matching association if it's found, and returns whether the association was removed or not.
|
storeNonce(self, nonce)Stores a nonce. This is used by the consumer to prevent replay attacks.
|
useNonce(self, nonce)This method is called when the library is attempting to use a nonce. If the nonce is in the store, this method removes it and returns a value which evaluates as true. Otherwise it returns a value which evaluates as false. This method is allowed and encouraged to treat nonces older than some period (a very conservative window would be 6 hours, for example) as no longer existing, and return False and remove them.
|
getAuthKey(self)This method returns a key used to sign the tokens, to ensure that they haven't been tampered with in transit. It should return the same key every time it is called. The key returned should be bytes long.
|
isDumb(self)This method must return won't override this
method, as custom subclasses are only likely to be created when the
store is fully functional.
|
| Class Variable Details |
|---|
AUTH_KEY_LENThe length of the auth key that should be returned by the method.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Jun 11 13:48:25 2007 | http://epydoc.sf.net |