API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
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
Références _listdir(), _removeIfPresent(), et Auth_OpenID_Association::deserialize().
Auth_OpenID_FileStore::_filenameEscape | ( | $ | str | ) |
private
Références $filename, $i, _isFilenameSafe(), et Auth_OpenID::toBytes().
Référencé par getAssociationFilename().
Auth_OpenID_FileStore::_getAssociation | ( | $ | filename | ) |
private
Références $filename, _removeIfPresent(), et Auth_OpenID_Association::deserialize().
Auth_OpenID_FileStore::_isFilenameSafe | ( | $ | char | ) |
Auth_OpenID_FileStore::_listdir | ( | $ | dir | ) |
private
Références $filename.
Référencé par _allAssocs(), clean(), cleanupNonces(), et getAssociation().
Auth_OpenID_FileStore::_mkstemp | ( | $ | dir | ) |
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.
Références $name, _mkstemp(), et _removeIfPresent().
Auth_OpenID_FileStore::_removeIfPresent | ( | $ | filename | ) |
Attempt to remove a file, returning whether the file existed at the time of the call.
private
Références $filename.
Référencé par _allAssocs(), _getAssociation(), _mktemp(), clean(), cleanupNonces(), removeAssociation(), et storeAssociation().
Auth_OpenID_FileStore::_rmtree | ( | $ | dir | ) |
Auth_OpenID_FileStore::_safe64 | ( | $ | str | ) |
private
Références Auth_OpenID_SHA1().
Référencé par getAssociationFilename().
Auth_OpenID_FileStore::_setup | ( | ) |
Make sure that the directories in which we store our data exist.
private
Références Auth_OpenID::ensureDir().
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. |
Références Auth_OpenID::ensureDir().
Auth_OpenID_FileStore::clean | ( | ) |
Références $filename, $now, _listdir(), _removeIfPresent(), et Auth_OpenID_checkTimestamp().
Auth_OpenID_FileStore::cleanupAssociations | ( | ) |
Réimplémentée à partir de Auth_OpenID_OpenIDStore.
Auth_OpenID_FileStore::cleanupNonces | ( | ) |
Réimplémentée à partir de Auth_OpenID_OpenIDStore.
Références $Auth_OpenID_SKEW, $now, $parts, _listdir(), et _removeIfPresent().
Auth_OpenID_FileStore::destroy | ( | ) |
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.
Réimplémentée à partir de Auth_OpenID_OpenIDStore.
Références $filename, $name, et _listdir().
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.
Références $filename, $parts, _filenameEscape(), et _safe64().
Auth_OpenID_FileStore::removeAssociation | ( | $ | server_url, |
$ | handle | ||
) |
Remove an association if it exists. Do nothing if it does not.
Réimplémentée à partir de Auth_OpenID_OpenIDStore.
Références $filename, et _removeIfPresent().
Auth_OpenID_FileStore::storeAssociation | ( | $ | server_url, |
$ | association | ||
) |
Store an association in the association directory.
Réimplémentée à partir de Auth_OpenID_OpenIDStore.
Références $filename, et _removeIfPresent().
Auth_OpenID_FileStore::useNonce | ( | $ | server_url, |
$ | timestamp, | ||
$ | salt | ||
) |
Return whether this nonce is present. As a side effect, mark it as no longer present.
Réimplémentée à partir de Auth_OpenID_OpenIDStore.
Références $Auth_OpenID_SKEW, $filename, et $parts.