[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/libraries/openid/Auth/OpenID/ -> MemcachedStore.php (summary)

This file supplies a memcached store backend for OpenID servers and consumers. PHP versions 4 and 5

Author: Artemy Tregubenko <me@arty.name>
Copyright: 2008 JanRain, Inc.
License: http://www.apache.org/licenses/LICENSE-2.0 Apache
File Size: 211 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Auth_OpenID_MemcachedStore:: (8 methods):
  Auth_OpenID_MemcachedStore()
  storeAssociation()
  getAssociation()
  removeAssociation()
  useNonce()
  associationKey()
  associationServerKey()
  supportsCleanup()


Class: Auth_OpenID_MemcachedStore  - X-Ref

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.

Auth_OpenID_MemcachedStore($connection, $compress = false)   X-Ref
Initializes a new {@link Auth_OpenID_MemcachedStore} instance.
Just saves memcached object as property.

param: resource connection Memcache connection resourse

storeAssociation($server_url, $association)   X-Ref
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.


getAssociation($server_url, $handle = null)   X-Ref
Read association from memcached. If no handle given
and multiple associations found, returns latest issued


removeAssociation($server_url, $handle)   X-Ref
Immediately delete association from memcache.


useNonce($server_url, $timestamp, $salt)   X-Ref
Create nonce for server and salt, expiring after
$Auth_OpenID_SKEW seconds.


associationKey($server_url, $handle = null)   X-Ref
Memcache key is prefixed with 'openid_association_' string.


associationServerKey($server_url)   X-Ref
Memcache key is prefixed with 'openid_association_' string.


supportsCleanup()   X-Ref
Report that this storage doesn't support cleanup




Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1