Instantiate Cache_Lite. Allows for options to be passed to Cache_Lite.
void
__construct
([ $options = array()])
-
array
$options: Options for Cache_Lite constructor
Deletes a cached OpenID_Discover object
void
deleteDiscover
(string $identifier)
-
string
$identifier: The Identifier
Deletes a nonce from storage
void
deleteNonce
(string $nonce, string $opURL)
-
string
$nonce: The nonce to delete
-
string
$opURL: The OP endpoint URL it is associated with
Implementation of:
- OpenID_Store_Interface::deleteNonce()
- Deletes a nonce from storage
Make sure the given sub directory exists. If not, create it.
void
ensureDirectoryExists
(string $dir)
-
string
$dir: The full path to the sub director we plan to write to
Gets an OpenID_Assocation instance from storage
-
string
$uri: The OP endpoint URI to get an association for
-
string
$handle: The handle if available
Implementation of:
- OpenID_Store_Interface::getAssociation()
- Gets an OpenID_Assocation instance from storage
Gets an OpenID_Discover object from storage
-
string
$identifier: The normalized identifier that discovery was performed on
Implementation of:
- OpenID_Store_Interface::getDiscover()
- Gets an OpenID_Discover object from storage
Common method for creating a cache key based on the normalized identifier
string
getDiscoverCacheKey
(string $identifier)
-
string
$identifier: User supplied identifier
Gets a nonce from storage
string
getNonce
(string $nonce, string $opURL)
-
string
$nonce: The nonce itself
-
string
$opURL: The OP Endpoint URL it was used with
Implementation of:
- OpenID_Store_Interface::getNonce()
- Gets a nonce from storage
Common method for creating a nonce key based on both the nonce and the OP endpoint URL
string
getNonceCacheKey
(string $nonce, string $opURL)
-
string
$nonce: The nonce
-
string
$opURL: The OP endpoint URL it is associated with
Stores an OpenID_Association instance. Details (such as endpoint url and expiration) are retrieved from the object itself.
Implementation of:
- OpenID_Store_Interface::setAssociation()
- Stores an OpenID_Association instance. Details (such as endpoint url and exiration) are retrieved from the object itself.
Stores a nonce for an OP endpoint URL
void
setNonce
(string $nonce, string $opURL)
-
string
$nonce: The nonce itself
-
string
$opURL: The OP endpoint URL it was associated with
Implementation of:
- OpenID_Store_Interface::setNonce()
- Stores a nonce for an OP endpoint URL
Sets options for Cache_Lite based on the needs of the current method.
Options set include the subdirectory to be used, and the expiration.
void
setOptions
(string $key, [string $expire = null])
-
string
$key: The sub-directory of the cacheDir
-
string
$expire: The cache lifetime (expire) to be used