Class Auth_OpenID_FileStore
This is a filesystem-based store for OpenID associations and nonces. This store should be safe for use in concurrent systems on both windows and unix (excluding NFS filesystems). There are a couple race conditions in the system, but those failure cases have been set up in such a way that the worst-case behavior is someone having to try to log in a second time.
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_OpenIDStore
- Auth_OpenID_FileStore
Copyright: 2005-2008 Janrain, Inc.
License: Apache
Author: JanRain, Inc. openid@janrain.com
Located at zp-extensions/federated_logon/Auth/OpenID/FileStore.php
public
|
#
Auth_OpenID_FileStore( string $directory )
Initializes a new |
public
|
|
public
|
|
public
array
|
|
public
|
|
public
string
|
#
getAssociationFilename( $server_url, $handle )
Create a unique filename for a given server url and handle. This implementation does not assume anything about the format of the handle. The filename that is returned will contain the domain name from the server URL for ease of human inspection of the data directory. |
public
|
#
storeAssociation( string $server_url, Association $association )
Store an association in the association directory. |
public
mixed
|
#
getAssociation( string $server_url, mixed $handle = null )
Retrieve an association. If no handle is specified, return the association with the most recent issue time. |
public
|
|
public
boolean
|
#
removeAssociation( string $server_url, string $handle )
Remove an association if it exists. Do nothing if it does not. |
public
boolean
|
|
public
|
#
_allAssocs( )
Remove expired entries from the database. This is potentially expensive, so only run when it is acceptable to take time. |
public
|
|
public
|
|
public
|
|
public static
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
#
_removeIfPresent( $filename )
Attempt to remove a file, returning whether the file existed at the time of the call. |
public
|
cleanup(),
reset(),
supportsCleanup()
|