Definition at line 9 of file oxopeniddb.php.
Public Member Functions | |
__construct () | |
storeAssociation ($sServerUrl, $oAssociation) | |
removeAssociation ($sServerUrl, $sHandle) | |
getAssociation ($sServerUrl, $sHandle=null) | |
useNonce ($sServerUrl, $sTimestamp, $sSalt) | |
cleanupNonces () | |
cleanupAssociations () | |
reset () | |
createTables () | |
blobEncode ($sSecret) | |
blobDecode ($sSecret) | |
Protected Member Functions | |
_getAssoc ($sServerUrl, $sHandle) | |
_getAssocs ($sServerUrl) | |
Protected Attributes | |
$_sAssociationsTable = null | |
$_sNoncesTable = null | |
$_oDB = null | |
$_iMaxNonceAge = null |
oxOpenIdDb.__construct | ( | ) |
oxOpenIdDb.storeAssociation | ( | $ | sServerUrl, | |
$ | oAssociation | |||
) |
This method puts an Association object into storage, retrievable by server URL and handle.
string | $sServerUrl the URL of the identity server | |
object | $oAssociation the Association to store |
Definition at line 61 of file oxopeniddb.php.
oxOpenIdDb.removeAssociation | ( | $ | sServerUrl, | |
$ | sHandle | |||
) |
This method removes the matching association if it's found, and returns whether the association was removed or not.
string | $sServerUrl the URL of the identity server | |
string | $sHandle handle of the association to remove |
Definition at line 80 of file oxopeniddb.php.
oxOpenIdDb.getAssociation | ( | $ | sServerUrl, | |
$ | sHandle = null | |||
) |
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.
If no handle is specified, the store may return any association which matches the server URL. If multiple associations are valid, the recommended return value for this method is the one most recently issued.
string | $sServerUrl the URL of the identity server | |
string | $sHandle handle of the association to remove |
Definition at line 110 of file oxopeniddb.php.
oxOpenIdDb.useNonce | ( | $ | sServerUrl, | |
$ | sTimestamp, | |||
$ | sSalt | |||
) |
Called when using a nonce.
This method should return true if the nonce has not been used before, and store it for a while to make sure nobody tries to use the same value again. If the nonce has already been used, return false.
string | $sServerUrl the URL of the identity server | |
string | $sTimestamp timestamp | |
string | $sSalt salt |
Definition at line 186 of file oxopeniddb.php.
oxOpenIdDb.cleanupNonces | ( | ) |
oxOpenIdDb.cleanupAssociations | ( | ) |
Remove expired associations from the store.
Definition at line 215 of file oxopeniddb.php.
oxOpenIdDb.reset | ( | ) |
Resets the store by removing all records from the store's tables.
Definition at line 227 of file oxopeniddb.php.
oxOpenIdDb.createTables | ( | ) |
oxOpenIdDb._getAssoc | ( | $ | sServerUrl, | |
$ | sHandle | |||
) | [protected] |
This method selects an association that matches the server URL and, if specified, handle.
string | $sServerUrl the URL of the identity server | |
string | $sHandle handle of the association to remove |
Definition at line 274 of file oxopeniddb.php.
oxOpenIdDb._getAssocs | ( | $ | sServerUrl | ) | [protected] |
This method selects an association that matches the server URL
string | $sServerUrl the URL of the identity server |
Definition at line 293 of file oxopeniddb.php.
oxOpenIdDb.blobEncode | ( | $ | sSecret | ) |
Encodes secret parameter for storing
string | $sSecret secret parameter |
Definition at line 312 of file oxopeniddb.php.
oxOpenIdDb.blobDecode | ( | $ | sSecret | ) |
Decodes secret parameter for storing
string | $sSecret secret parameter |
Definition at line 324 of file oxopeniddb.php.
oxOpenIdDb.$_sAssociationsTable = null [protected] |
Definition at line 16 of file oxopeniddb.php.
oxOpenIdDb.$_sNoncesTable = null [protected] |
Definition at line 23 of file oxopeniddb.php.
oxOpenIdDb.$_oDB = null [protected] |
Definition at line 30 of file oxopeniddb.php.
oxOpenIdDb.$_iMaxNonceAge = null [protected] |
Definition at line 37 of file oxopeniddb.php.