Abstract class to implement external storage for OpenID consumer

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

 Methods

Stores information about session identified by $handle

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

Parameters

$handle

string

assiciation handle

$macFunc

string

HMAC function (sha1 or sha256)

$secret

string

shared secret

$expires

string

expiration UNIX time

Stores information about trusted/untrusted site for given user

addSite(string $id, string $site, mixed $trusted) : boolean

Parameters

$id

string

user identity URL

$site

string

site URL

$trusted

mixed

trust data from extensions or just a boolean value

Returns

boolean

Register new user with given $id and $password Returns true in case of success and false if user with given $id already exists

addUser(string $id, string $password) : boolean

Parameters

$id

string

user identity URL

$password

string

encoded user password

Returns

boolean

Verify if user with given $id exists and has specified $password

checkUser(string $id, string $password) : boolean

Parameters

$id

string

user identity URL

$password

string

user password

Returns

boolean

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

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

Parameters

$handle

string

assiciation handle

$macFunc

$secret

$expires

Returns

boolean

Returns array of all trusted/untrusted sites for given user identified by $id

getTrustedSites(string $id) : array

Parameters

$id

string

user identity URL

Returns

array

Returns true if user with given $id exists and false otherwise

hasUser(string $id) : boolean

Parameters

$id

string

user identity URL

Returns

boolean