Auth_OpenID_FileStore Auth_OpenID_FileStore(
string
$directory
)
|
|
Initializes a new Auth_OpenID_FileStore. This initializes the nonce and association directories, which are subdirectories of the directory passed in.
Parameters:
|
string |
$directory: |
This is the directory to put the store directories in. |
mixed getAssociation(
$server_url, [
$handle = null]
)
|
|
Retrieve an association. If no handle is specified, return the association with the most recent issue time.
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.
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.
Parameters:
bool removeAssociation(
$server_url,
$handle
)
|
|
Remove an association if it exists. Do nothing if it does not.
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 an association in the association directory.
Parameters:
|
|
$server_url: |
|
|
|
$association: |
|
Redefinition of:
- Auth_OpenID_OpenIDStore::storeAssociation()
- This method puts an Association object into storage, retrievable by server URL and handle.
bool useNonce(
$server_url,
$timestamp,
$salt
)
|
|
Return whether this nonce is present. As a side effect, mark it as no longer present.
Parameters:
|
|
$server_url: |
|
|
|
$timestamp: |
|
|
|
$salt: |
|
Redefinition of:
- Auth_OpenID_OpenIDStore::useNonce()
- Called when using a nonce.