Auth_OpenID_MemcachedStore Class Reference

Inheritance diagram for Auth_OpenID_MemcachedStore:

Inheritance graph
[legend]
Collaboration diagram for Auth_OpenID_MemcachedStore:

Collaboration graph
[legend]

List of all members.


Detailed Description

This file supplies a memcached store backend for OpenID servers and consumers.

PHP versions 4 and 5

LICENSE: See the COPYING file included in this distribution.

Author:
Artemy Tregubenko <[email protected]> 2008 JanRain, Inc. http://www.apache.org/licenses/LICENSE-2.0 Apache Contributed by Open Web Technologies <http://openwebtech.ru/> Import the interface for creating a new store class. 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.

Definition at line 36 of file MemcachedStore.php.


Public Member Functions

 Auth_OpenID_MemcachedStore ($connection, $compress=false)
 storeAssociation ($server_url, $association)
 getAssociation ($server_url, $handle=null)
 removeAssociation ($server_url, $handle)
 useNonce ($server_url, $timestamp, $salt)
 associationKey ($server_url, $handle=null)
 associationServerKey ($server_url)
 supportsCleanup ()

Member Function Documentation

Auth_OpenID_MemcachedStore.Auth_OpenID_MemcachedStore ( connection,
compress = false 
)

Initializes a new Auth_OpenID_MemcachedStore instance. Just saves memcached object as property.

Parameters:
resource connection Memcache connection resourse

Definition at line 44 of file MemcachedStore.php.

Auth_OpenID_MemcachedStore.storeAssociation ( server_url,
association 
)

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.

Reimplemented from Auth_OpenID_OpenIDStore.

Definition at line 55 of file MemcachedStore.php.

Auth_OpenID_MemcachedStore.getAssociation ( server_url,
handle = null 
)

Read association from memcached. If no handle given and multiple associations found, returns latest issued

Reimplemented from Auth_OpenID_OpenIDStore.

Definition at line 91 of file MemcachedStore.php.

Auth_OpenID_MemcachedStore.removeAssociation ( server_url,
handle 
)

Immediately delete association from memcache.

Reimplemented from Auth_OpenID_OpenIDStore.

Definition at line 125 of file MemcachedStore.php.

Auth_OpenID_MemcachedStore.useNonce ( server_url,
timestamp,
salt 
)

Create nonce for server and salt, expiring after $Auth_OpenID_SKEW seconds.

Reimplemented from Auth_OpenID_OpenIDStore.

Definition at line 165 of file MemcachedStore.php.

Auth_OpenID_MemcachedStore.associationKey ( server_url,
handle = null 
)

Memcache key is prefixed with 'openid_association_' string.

Definition at line 186 of file MemcachedStore.php.

Auth_OpenID_MemcachedStore.associationServerKey ( server_url  ) 

Memcache key is prefixed with 'openid_association_' string.

Definition at line 194 of file MemcachedStore.php.

Auth_OpenID_MemcachedStore.supportsCleanup (  ) 

Report that this storage doesn't support cleanup

Reimplemented from Auth_OpenID_OpenIDStore.

Definition at line 202 of file MemcachedStore.php.


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

Generated on Thu Feb 19 15:03:27 2009 for OXID eShop CE by  doxygen 1.5.5