Метод |
Описание |
|
__construct ( string $directory ) |
Initializes a new {@link Auth_OpenID_FileStore}. This
initializes the nonce and association directories, which are
subdirectories of the directory passed in. |
|
_allAssocs ( ) |
Remove expired entries from the database. This is potentially
expensive, so only run when it is acceptable to take time. |
|
_filenameEscape ( $str ) |
|
|
_getAssociation ( $filename ) |
|
|
_isFilenameSafe ( $char ) |
|
|
_listdir ( $dir ) |
|
|
_mkdtemp ( $dir ) |
|
|
_mkstemp ( $dir ) |
|
|
_mktemp ( ) : array |
Create a temporary file on the same filesystem as
$this->association_dir. |
|
_removeIfPresent ( $filename ) : boolean |
Attempt to remove a file, returning whether the file existed at
the time of the call. |
|
_rmtree ( $dir ) |
|
|
_safe64 ( $str ) |
|
|
_setup ( ) |
Make sure that the directories in which we store our data
exist. |
|
clean ( ) |
|
|
cleanupAssociations ( ) |
|
|
cleanupNonces ( ) |
|
|
destroy ( ) |
|
|
getAssociation ( $server_url, $handle = null ) : mixed |
Retrieve an association. If no handle is specified, return the
association with the most recent issue time. |
|
getAssociationFilename ( $server_url, $handle ) : string |
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. |
|
removeAssociation ( $server_url, $handle ) : boolean |
Remove an association if it exists. Do nothing if it does not. |
|
storeAssociation ( $server_url, $association ) |
Store an association in the association directory. |
|
useNonce ( $server_url, $timestamp, $salt ) : boolean |
Return whether this nonce is present. As a side effect, mark it
as no longer present. |
|