External storage implemmentation using serialized files

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
inherited_from \Zend_OpenId_Provider_Storage

 Methods

Constructs storage object and creates storage directory

__construct(string $dir = null

Parameters

$dir

string

directory name to store data files in

Exceptions

\Zend_OpenId_Exception

Stores information about session identified by $handle

addAssociation(string $handle, string $macFunc, string $secret, string $expires) : boolean
inherited_from \Zend_OpenId_Provider_Storage::addAssociation()

Parameters

$handle

string

assiciation handle

$macFunc

string

HMAC function (sha1 or sha256)

$secret

string

shared secret

$expires

string

expiration UNIX time

Returns

boolean

Stores information about session identified by $handle

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

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
inherited_from \Zend_OpenId_Provider_Storage::addSite()

Parameters

$id

string

user identity URL

$site

string

site URL

$trusted

mixed

trust data from extension or just a boolean value

Returns

boolean

Stores information about trusted/untrusted site for given user

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

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
inherited_from \Zend_OpenId_Provider_Storage::addUser()

Parameters

$id

string

user identity URL

$password

string

encoded user password

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
Inherited

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
inherited_from \Zend_OpenId_Provider_Storage::checkUser()

Parameters

$id

string

user identity URL

$password

string

user password

Returns

boolean

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

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

Parameters

$id

string

user identity URL

$password

string

user password

Returns

boolean

Removes information about association identified by $handle

delAssociation(string $handle) : boolean

Parameters

$handle

string

assiciation handle

Returns

boolean

Removes information abou specified user

delUser(string $id) : boolean

Parameters

$id

string

user identity URL

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
inherited_from \Zend_OpenId_Provider_Storage::getAssociation()

Parameters

$handle

string

assiciation handle

$macFunc

$secret

$expires

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
Inherited

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
inherited_from \Zend_OpenId_Provider_Storage::getTrustedSites()

Parameters

$id

string

user identity URL

Returns

array

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

getTrustedSites(string $id) : array
Inherited

Parameters

$id

string

user identity URL

Returns

array

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

hasUser(string $id) : boolean
inherited_from \Zend_OpenId_Provider_Storage::hasUser()

Parameters

$id

string

user identity URL

Returns

boolean

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

hasUser(string $id) : boolean
Inherited

Parameters

$id

string

user identity URL

Returns

boolean

 Properties

 

Directory name to store data files in

$_dir : string

Default