Auth_OpenID_MemcachedStore Auth_OpenID_MemcachedStore(
resource
$connection, [
$compress = false]
)
|
|
Initializes a new Auth_OpenID_MemcachedStore instance.
Just saves memcached object as property.
Parameters:
|
resource |
$connection: |
connection Memcache connection resourse |
|
|
$compress: |
|
void associationKey(
$server_url, [
$handle = null]
)
|
|
Memcache key is prefixed with 'openid_association_' string.
Parameters:
void associationServerKey(
$server_url
)
|
|
Memcache key is prefixed with 'openid_association_' string.
Parameters:
void getAssociation(
$server_url, [
$handle = null]
)
|
|
Read association from memcached. If no handle given
and multiple associations found, returns latest issued
Parameters:
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.
void removeAssociation(
$server_url,
$handle
)
|
|
Immediately delete association from memcache.
Parameters:
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.
void 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.
Parameters:
|
|
$server_url: |
|
|
|
$association: |
|
Redefinition of:
- Auth_OpenID_OpenIDStore::storeAssociation()
- This method puts an Association object into storage, retrievable by server URL and handle.
void useNonce(
$server_url,
$timestamp,
$salt
)
|
|
Create nonce for server and salt, expiring after $Auth_OpenID_SKEW seconds.
Parameters:
|
|
$server_url: |
|
|
|
$timestamp: |
|
|
|
$salt: |
|
Redefinition of:
- Auth_OpenID_OpenIDStore::useNonce()
- Called when using a nonce.