| ILIAS
    Release_4_1_x_branch Revision 61804
    | 
 Inheritance diagram for Auth_OpenID_FileStore:
 Inheritance diagram for Auth_OpenID_FileStore: Collaboration diagram for Auth_OpenID_FileStore:
 Collaboration diagram for Auth_OpenID_FileStore:| Public Member Functions | |
| Auth_OpenID_FileStore ($directory) | |
| Initializes a new Auth_OpenID_FileStore. | |
| destroy () | |
| _setup () | |
| Make sure that the directories in which we store our data exist. | |
| _mktemp () | |
| Create a temporary file on the same filesystem as $this->association_dir. | |
| cleanupNonces () | |
| getAssociationFilename ($server_url, $handle) | |
| Create a unique filename for a given server url and handle. | |
| storeAssociation ($server_url, $association) | |
| Store an association in the association directory. | |
| getAssociation ($server_url, $handle=null) | |
| Retrieve an association. | |
| _getAssociation ($filename) | |
| private | |
| removeAssociation ($server_url, $handle) | |
| Remove an association if it exists. | |
| useNonce ($server_url, $timestamp, $salt) | |
| Return whether this nonce is present. | |
| _allAssocs () | |
| Remove expired entries from the database. | |
| clean () | |
| _rmtree ($dir) | |
| private | |
| _mkstemp ($dir) | |
| private | |
| _listdir ($dir) | |
| private | |
| _isFilenameSafe ($char) | |
| private | |
| _safe64 ($str) | |
| private | |
| _filenameEscape ($str) | |
| private | |
| _removeIfPresent ($filename) | |
| Attempt to remove a file, returning whether the file existed at the time of the call. | |
| cleanupAssociations () | |
|  Public Member Functions inherited from Auth_OpenID_OpenIDStore | |
| cleanup () | |
| supportsCleanup () | |
| Report whether this storage supports cleanup. | |
| reset () | |
| Removes all entries from the store; implementation is optional. | |
| Static Public Member Functions | |
| static | _mkdtemp ($dir) | 
| private | |
Definition at line 39 of file FileStore.php.
| Auth_OpenID_FileStore::_allAssocs | ( | ) | 
Remove expired entries from the database.
This is potentially expensive, so only run when it is acceptable to take time.
private
Definition at line 405 of file FileStore.php.
References _listdir(), _removeIfPresent(), and Auth_OpenID_Association\deserialize().
Referenced by clean(), and cleanupAssociations().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| Auth_OpenID_FileStore::_filenameEscape | ( | $str | ) | 
private
Definition at line 576 of file FileStore.php.
References $filename, _isFilenameSafe(), and Auth_OpenID\toBytes().
Referenced by getAssociationFilename(), and useNonce().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| Auth_OpenID_FileStore::_getAssociation | ( | $filename | ) | 
private
Definition at line 296 of file FileStore.php.
References $filename, _removeIfPresent(), and Auth_OpenID_Association\deserialize().
Referenced by getAssociation().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| Auth_OpenID_FileStore::_isFilenameSafe | ( | $char | ) | 
private
Definition at line 554 of file FileStore.php.
References Auth_OpenID_digits, and Auth_OpenID_letters.
Referenced by _filenameEscape().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| Auth_OpenID_FileStore::_listdir | ( | $dir | ) | 
private
Definition at line 539 of file FileStore.php.
References $dir, $filename, and $files.
Referenced by _allAssocs(), clean(), cleanupNonces(), and getAssociation().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
private
Definition at line 522 of file FileStore.php.
References $dir.
| Auth_OpenID_FileStore::_mkstemp | ( | $dir | ) | 
private
Definition at line 507 of file FileStore.php.
References $dir.
Referenced by _mktemp().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| Auth_OpenID_FileStore::_mktemp | ( | ) | 
Create a temporary file on the same filesystem as $this->association_dir.
The temporary directory should not be cleaned if there are any processes using the store. If there is no active process using the store, it is safe to remove all of the files in the temporary directory.
Definition at line 108 of file FileStore.php.
References $dir, _mkstemp(), and _removeIfPresent().
Referenced by storeAssociation().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| Auth_OpenID_FileStore::_removeIfPresent | ( | $filename | ) | 
Attempt to remove a file, returning whether the file existed at the time of the call.
private
Definition at line 599 of file FileStore.php.
References $filename.
Referenced by _allAssocs(), _getAssociation(), _mktemp(), clean(), cleanupAssociations(), cleanupNonces(), removeAssociation(), and storeAssociation().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| Auth_OpenID_FileStore::_rmtree | ( | $dir | ) | 
private
Definition at line 469 of file FileStore.php.
References $dir.
Referenced by destroy().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| Auth_OpenID_FileStore::_safe64 | ( | $str | ) | 
private
Definition at line 564 of file FileStore.php.
References Auth_OpenID_SHA1().
Referenced by getAssociationFilename(), and useNonce().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| Auth_OpenID_FileStore::_setup | ( | ) | 
Make sure that the directories in which we store our data exist.
private
Definition at line 89 of file FileStore.php.
References Auth_OpenID\ensureDir().
Referenced by Auth_OpenID_FileStore().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| Auth_OpenID_FileStore::Auth_OpenID_FileStore | ( | $directory | ) | 
Initializes a new Auth_OpenID_FileStore.
This initializes the nonce and association directories, which are subdirectories of the directory passed in.
| string | $directory | This is the directory to put the store directories in. | 
Definition at line 49 of file FileStore.php.
References _setup(), and Auth_OpenID\ensureDir().
 Here is the call graph for this function:
 Here is the call graph for this function:| Auth_OpenID_FileStore::clean | ( | ) | 
Definition at line 440 of file FileStore.php.
References $filename, _allAssocs(), _listdir(), _removeIfPresent(), and Auth_OpenID_checkTimestamp().
 Here is the call graph for this function:
 Here is the call graph for this function:| Auth_OpenID_FileStore::cleanupAssociations | ( | ) | 
Reimplemented from Auth_OpenID_OpenIDStore.
Definition at line 604 of file FileStore.php.
References _allAssocs(), and _removeIfPresent().
 Here is the call graph for this function:
 Here is the call graph for this function:| Auth_OpenID_FileStore::cleanupNonces | ( | ) | 
Reimplemented from Auth_OpenID_OpenIDStore.
Definition at line 119 of file FileStore.php.
References $Auth_OpenID_SKEW, $timestamp, _listdir(), and _removeIfPresent().
 Here is the call graph for this function:
 Here is the call graph for this function:| Auth_OpenID_FileStore::destroy | ( | ) | 
Definition at line 77 of file FileStore.php.
References _rmtree().
 Here is the call graph for this function:
 Here is the call graph for this function:| Auth_OpenID_FileStore::getAssociation | ( | $server_url, | |
| $handle = null | |||
| ) | 
Retrieve an association.
If no handle is specified, return the association with the most recent issue time.
Reimplemented from Auth_OpenID_OpenIDStore.
Definition at line 232 of file FileStore.php.
References $filename, _getAssociation(), _listdir(), and getAssociationFilename().
Referenced by removeAssociation().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| Auth_OpenID_FileStore::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.
Definition at line 150 of file FileStore.php.
References $filename, $rest, _filenameEscape(), and _safe64().
Referenced by getAssociation(), removeAssociation(), and storeAssociation().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| Auth_OpenID_FileStore::removeAssociation | ( | $server_url, | |
| $handle | |||
| ) | 
Remove an association if it exists.
Do nothing if it does not.
Reimplemented from Auth_OpenID_OpenIDStore.
Definition at line 338 of file FileStore.php.
References $filename, _removeIfPresent(), getAssociation(), and getAssociationFilename().
 Here is the call graph for this function:
 Here is the call graph for this function:| Auth_OpenID_FileStore::storeAssociation | ( | $server_url, | |
| $association | |||
| ) | 
Store an association in the association directory.
Reimplemented from Auth_OpenID_OpenIDStore.
Definition at line 182 of file FileStore.php.
References $filename, _mktemp(), _removeIfPresent(), and getAssociationFilename().
 Here is the call graph for this function:
 Here is the call graph for this function:| Auth_OpenID_FileStore::useNonce | ( | $server_url, | |
| $timestamp, | |||
| $salt | |||
| ) | 
Return whether this nonce is present.
As a side effect, mark it as no longer present.
Reimplemented from Auth_OpenID_OpenIDStore.
Definition at line 360 of file FileStore.php.
References $Auth_OpenID_SKEW, $filename, $rest, $result, $timestamp, _filenameEscape(), and _safe64().
 Here is the call graph for this function:
 Here is the call graph for this function: