Class Tests_Auth_OpenID_MemStore

Description

This is the interface for the store objects the OpenID library

uses. It is a single class that provides all of the persistence mechanisms that the OpenID library needs, for both servers and consumers. If you want to create an SQL-driven store, please see then Auth_OpenID_SQLStore class.

Change: Version 2.0 removed the storeNonce, getAuthKey, and isDumb methods, and changed the behavior of the useNonce method to support one-way nonces.

Located in /Tests/Auth/OpenID/MemStore.php (line 78)

Auth_OpenID_OpenIDStore
   |
   --Tests_Auth_OpenID_MemStore
Direct descendents
Class Description
 class GoodAssocStore This is the interface for the store objects the OpenID library
Method Summary
 Tests_Auth_OpenID_MemStore Tests_Auth_OpenID_MemStore ()
 void cleanupNonces ()
 void getAssociation ( $server_url, [ $handle = null])
 void removeAssociation ( $server_url,  $handle)
 void storeAssociation ( $server_url,  $assoc)
 void useNonce ( $server_url,  $timestamp,  $salt)
 void &_getServerAssocs ( $server_url)
Methods
Constructor Tests_Auth_OpenID_MemStore (line 79)
Tests_Auth_OpenID_MemStore Tests_Auth_OpenID_MemStore ()
cleanupAssociations (line 155)
void cleanupAssociations ()

Redefinition of:
Auth_OpenID_OpenIDStore::cleanupAssociations()
cleanupNonces (line 134)
void cleanupNonces ()

Redefinition of:
Auth_OpenID_OpenIDStore::cleanupNonces()
getAssociation (line 100)
void getAssociation ( $server_url, [ $handle = null])
  • $server_url
  • $handle

Redefinition of:
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.

Redefined in descendants as:
removeAssociation (line 110)
void removeAssociation ( $server_url,  $handle)
  • $server_url
  • $handle

Redefinition of:
Auth_OpenID_OpenIDStore::removeAssociation()
This method removes the matching association if it's found, and returns whether the association was removed or not.
storeAssociation (line 94)
void storeAssociation ( $server_url,  $assoc)
  • $server_url
  • $assoc

Redefinition of:
Auth_OpenID_OpenIDStore::storeAssociation()
This method puts an Association object into storage, retrievable by server URL and handle.
useNonce (line 116)
void useNonce ( $server_url,  $timestamp,  $salt)
  • $server_url
  • $timestamp
  • $salt

Redefinition of:
Auth_OpenID_OpenIDStore::useNonce()
Called when using a nonce.
_getServerAssocs (line 85)
void &_getServerAssocs ( $server_url)
  • $server_url

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 Thu, 29 Jul 2010 13:58:57 -0700 by phpDocumentor 1.4.3