Auth_OpenID_MemcachedStore
This is a memcached-based store for OpenID associations and nonces.
As memcache has limit of 250 chars for key length, server_url, handle and salt are hashed with sha1().
Most of the methods of this class are implementation details. People wishing to just use this store need only pay attention to the constructor.
Located in /openid/Auth/OpenID/MemcachedStore.php (line 39)
Auth_OpenID_OpenIDStore
![]()
Auth_OpenID_MemcachedStore
Initializes a new Auth_OpenID_MemcachedStore instance.
Just saves memcached object as property.
- resource $connection: connection Memcache connection resourse
- $compress
Memcache key is prefixed with 'openid_association_' string.
- $server_url
- $handle
Memcache key is prefixed with 'openid_association_' string.
- $server_url
Read association from memcached. If no handle given
and multiple associations found, returns latest issued
- $server_url
- $handle
- Auth_OpenID_OpenIDStore::getAssociation()
- This method returns an Association object from storage that matches the server URL and, if specified, handle. It returns null if no such association is found or if the matching association is expired.
Immediately delete association from memcache.
- $server_url
- $handle
- Auth_OpenID_OpenIDStore::removeAssociation()
- This method removes the matching association if it's found, and returns whether the association was removed or not.
Store association until its expiration time in memcached.
Overwrites any existing association with same server_url and handle. Handles list of associations for every server.
- $server_url
- $association
- Auth_OpenID_OpenIDStore::storeAssociation()
- This method puts an Association object into storage, retrievable by server URL and handle.
Report that this storage doesn't support cleanup
- Auth_OpenID_OpenIDStore::supportsCleanup()
- Report whether this storage supports cleanup
Create nonce for server and salt, expiring after $Auth_OpenID_SKEW seconds.
- $server_url
- $timestamp
- $salt
- Auth_OpenID_OpenIDStore::useNonce()
- Called when using a nonce.
Inherited Methods
Inherited From Auth_OpenID_OpenIDStore
Auth_OpenID_OpenIDStore::cleanup()
Auth_OpenID_OpenIDStore::cleanupAssociations()
Auth_OpenID_OpenIDStore::cleanupNonces()
Auth_OpenID_OpenIDStore::getAssociation()
Auth_OpenID_OpenIDStore::removeAssociation()
Auth_OpenID_OpenIDStore::reset()
Auth_OpenID_OpenIDStore::storeAssociation()
Auth_OpenID_OpenIDStore::supportsCleanup()
Auth_OpenID_OpenIDStore::useNonce()
Documentation generated on Sat, 14 Nov 2009 11:15:45 +0000 by phpDocumentor 1.3.1



