AuthenticationDatabaseTiein: ezcAuthenticationOpenidDbStore
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcAuthenticationOpenidDbStore
|
Class providing database storage for OpenID authentication. [
source]
This class requires that the database used contains two special tables. See the tutorial for information on how to create those tables.
Parents
ezcAuthenticationOpenidStore
|
--ezcAuthenticationOpenidDbStore
Properties
Inherited Member Variables
From
ezcAuthenticationOpenidStore:
Method Summary
|
public ezcAuthenticationOpenidDbStore |
__construct(
$instance, [$options = null] )
Creates a new object of this class. |
|
public ezcAuthenticationOpenidAssociation |
getAssociation(
$url )
Returns the unserialized association linked to the OpenID provider URL. |
|
public bool |
removeAssociation(
$url )
Removes the association linked to the OpenID provider URL. |
|
protected void |
removeNonce(
$nonce )
Removes the nonce from the nonces table. |
|
public bool |
storeAssociation(
$url, $association )
Stores an association in the store linked to the OpenID provider URL. |
|
public bool |
storeNonce(
$nonce )
Stores the nonce in the store. |
|
public bool|int |
useNonce(
$nonce )
Checks if the nonce exists and afterwards deletes it. |
Inherited Methods
From
ezcAuthenticationOpenidStore :
Methods
__construct
Creates a new object of this class.
Parameters
getAssociation
Returns the unserialized association linked to the OpenID provider URL.
Returns false if the association could not be retrieved or if it expired.
Parameters
| Name |
Type |
Description |
$url |
string |
The URL of the OpenID provider |
Redefinition of
removeAssociation
bool removeAssociation(
string
$url )
Removes the association linked to the OpenID provider URL.
Returns true always.
Parameters
| Name |
Type |
Description |
$url |
string |
The URL of the OpenID provider |
Redefinition of
removeNonce
void removeNonce(
string
$nonce )
Removes the nonce from the nonces table.
Parameters
| Name |
Type |
Description |
$nonce |
string |
|
storeAssociation
Stores an association in the store linked to the OpenID provider URL.
Returns true always.
Parameters
Redefinition of
storeNonce
bool storeNonce(
string
$nonce )
Stores the nonce in the store.
Returns true if the nonce was stored successfully, and false otherwise.
Parameters
| Name |
Type |
Description |
$nonce |
string |
The nonce value to store |
Throws
| Class | Description |
ezcBaseFilePermissionException |
if the nonce cannot be written in the store |
Redefinition of
useNonce
bool|int useNonce(
string
$nonce )
Checks if the nonce exists and afterwards deletes it.
Returns the timestamp of the nonce if it exists, and false otherwise.
Parameters
| Name |
Type |
Description |
$nonce |
string |
The nonce value to check and delete |
Redefinition of
Last updated: Mon, 05 Jan 2009