Abstract class to implement external storage for OpenID consumer

category Zend
package Zend_OpenId
subpackage Zend_OpenId_Consumer
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Stores information about association identified by $url/$handle

addAssociation(string $url, string $handle, string $macFunc, string $secret, \long $expires) : void

Parameters

$url

string

OpenID server URL

$handle

string

assiciation handle

$macFunc

string

HMAC function (sha1 or sha256)

$secret

string

shared secret

$expires

\long

expiration UNIX time

Stores information discovered from identity $id

addDiscoveryInfo(string $id, string $realId, string $server, float $version, \long $expires) : void

Parameters

$id

string

identity

$realId

string

discovered real identity URL

$server

string

discovered OpenID server URL

$version

float

discovered OpenID protocol version

$expires

\long

expiration UNIX time

Deletes association identified by $url

delAssociation(string $url) : void

Parameters

$url

string

OpenID server URL

Removes cached information discovered from identity $id

delDiscoveryInfo(string $id) : boolean

Parameters

$id

string

identity

Returns

boolean

Gets information about association identified by $url Returns true if given association found and not expired and false otherwise

getAssociation(string $url, $handle, $macFunc, $secret, $expires) : boolean

Parameters

$url

string

OpenID server URL

$handle

$macFunc

$secret

$expires

Returns

boolean

Gets information about association identified by $handle Returns true if given association found and not expired and false othverwise

getAssociationByHandle(string $handle, $url, $macFunc, $secret, $expires) : boolean

Parameters

$handle

string

assiciation handle

$url

$macFunc

$secret

$expires

Returns

boolean

Gets information discovered from identity $id Returns true if such information exists and false otherwise

getDiscoveryInfo(string $id, $realId, $server, $version, $expires) : boolean

Parameters

$id

string

identity

$realId

$server

$version

$expires

Returns

boolean

The function checks the uniqueness of openid.response_nonce

isUniqueNonce(string $provider, string $nonce) : boolean

Parameters

$provider

string

openid.openid_op_endpoint field from authentication response

$nonce

string

openid.response_nonce field from authentication response

Returns

boolean

Removes data from the uniqueness database that is older then given date

purgeNonces(string $date = null

Parameters

$date

string

Date of expired data