Zend Framework
1.12
|
Public Member Functions | |
__construct ($dir=null) | |
Constructs storage object and creates storage directory. | |
addAssociation ($url, $handle, $macFunc, $secret, $expires) | |
Stores information about association identified by $url/$handle. | |
getAssociation ($url, &$handle, &$macFunc, &$secret, &$expires) | |
Gets information about association identified by $url Returns true if given association found and not expired and false otherwise. | |
getAssociationByHandle ($handle, &$url, &$macFunc, &$secret, &$expires) | |
Gets information about association identified by $handle Returns true if given association found and not expired and false otherwise. | |
delAssociation ($url) | |
Deletes association identified by $url. | |
addDiscoveryInfo ($id, $realId, $server, $version, $expires) | |
Stores information discovered from identity $id. | |
getDiscoveryInfo ($id, &$realId, &$server, &$version, &$expires) | |
Gets information discovered from identity $id Returns true if such information exists and false otherwise. | |
delDiscoveryInfo ($id) | |
Removes cached information discovered from identity $id. | |
isUniqueNonce ($provider, $nonce) | |
The function checks the uniqueness of openid.response_nonce. | |
purgeNonces ($date=null) | |
Removes data from the uniqueness database that is older then given date. | |
![]() | |
addAssociation ($url, $handle, $macFunc, $secret, $expires) | |
Stores information about association identified by $url/$handle. | |
getAssociation ($url, &$handle, &$macFunc, &$secret, &$expires) | |
Gets information about association identified by $url Returns true if given association found and not expired and false otherwise. | |
getAssociationByHandle ($handle, &$url, &$macFunc, &$secret, &$expires) | |
Gets information about association identified by $handle Returns true if given association found and not expired and false othverwise. | |
delAssociation ($url) | |
Deletes association identified by $url. | |
addDiscoveryInfo ($id, $realId, $server, $version, $expires) | |
Stores information discovered from identity $id. | |
getDiscoveryInfo ($id, &$realId, &$server, &$version, &$expires) | |
Gets information discovered from identity $id Returns true if such information exists and false otherwise. | |
delDiscoveryInfo ($id) | |
Removes cached information discovered from identity $id. | |
isUniqueNonce ($provider, $nonce) | |
The function checks the uniqueness of openid.response_nonce. | |
purgeNonces ($date=null) | |
Removes data from the uniqueness database that is older then given date. | |
__construct | ( | $dir = null | ) |
Constructs storage object and creates storage directory.
string | $dir | directory name to store data files in |
Zend_OpenId_Exception |
addAssociation | ( | $url, | |
$handle, | |||
$macFunc, | |||
$secret, | |||
$expires | |||
) |
Stores information about association identified by $url/$handle.
string | $url | OpenID server URL |
string | $handle | assiciation handle |
string | $macFunc | HMAC function (sha1 or sha256) |
string | $secret | shared secret |
long | $expires | expiration UNIX time |
addDiscoveryInfo | ( | $id, | |
$realId, | |||
$server, | |||
$version, | |||
$expires | |||
) |
Stores information discovered from identity $id.
string | $id | identity |
string | $realId | discovered real identity URL |
string | $server | discovered OpenID server URL |
float | $version | discovered OpenID protocol version |
long | $expires | expiration UNIX time |
delAssociation | ( | $url | ) |
Deletes association identified by $url.
string | $url | OpenID server URL |
delDiscoveryInfo | ( | $id | ) |
Removes cached information discovered from identity $id.
string | $id | identity |
getAssociation | ( | $url, | |
& | $handle, | ||
& | $macFunc, | ||
& | $secret, | ||
& | $expires | ||
) |
Gets information about association identified by $url Returns true if given association found and not expired and false otherwise.
string | $url | OpenID server URL |
string | &$handle | assiciation handle |
string | &$macFunc | HMAC function (sha1 or sha256) |
string | &$secret | shared secret |
long | &$expires | expiration UNIX time |
getAssociationByHandle | ( | $handle, | |
& | $url, | ||
& | $macFunc, | ||
& | $secret, | ||
& | $expires | ||
) |
Gets information about association identified by $handle Returns true if given association found and not expired and false otherwise.
string | $handle | assiciation handle |
string | &$url | OpenID server URL |
string | &$macFunc | HMAC function (sha1 or sha256) |
string | &$secret | shared secret |
long | &$expires | expiration UNIX time |
getDiscoveryInfo | ( | $id, | |
& | $realId, | ||
& | $server, | ||
& | $version, | ||
& | $expires | ||
) |
Gets information discovered from identity $id Returns true if such information exists and false otherwise.
string | $id | identity |
string | &$realId | discovered real identity URL |
string | &$server | discovered OpenID server URL |
float | &$version | discovered OpenID protocol version |
long | &$expires | expiration UNIX time |
isUniqueNonce | ( | $provider, | |
$nonce | |||
) |
The function checks the uniqueness of openid.response_nonce.
string | $provider | openid.openid_op_endpoint field from authentication response |
string | $nonce | openid.response_nonce field from authentication response |
purgeNonces | ( | $date = null | ) |
Removes data from the uniqueness database that is older then given date.
mixed | $date | date of expired data |