OpenId/Provider/Storage/File.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_OpenId
- Subpackage
- Zend_OpenId_Provider
- Version
- $Id$
\Zend_OpenId_Provider_Storage_File
- Parent(s)
- \Zend_OpenId_Provider_Storage
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods


__construct(string $dir = null) : void
Constructs storage object and creates storage directory
Name | Type | Description |
---|---|---|
$dir | string | directory name to store data files in |
Exception | Description |
---|---|
\Zend_OpenId_Exception |


addAssociation(string $handle, string $macFunc, string $secret, string $expires) : bool
Stores information about session identified by $handle
Name | Type | Description |
---|---|---|
$handle | string | assiciation handle |
$macFunc | string | HMAC function (sha1 or sha256) |
$secret | string | shared secret |
$expires | string | expiration UNIX time |
Type | Description |
---|---|
bool |


addSite(string $id, string $site, mixed $trusted) : bool
Stores information about trusted/untrusted site for given user
Name | Type | Description |
---|---|---|
$id | string | user identity URL |
$site | string | site URL |
$trusted | mixed | trust data from extension or just a boolean value |
Type | Description |
---|---|
bool |


addUser(string $id, string $password) : bool
Register new user with given $id and $password Returns true in case of success and false if user with given $id already exists
Name | Type | Description |
---|---|---|
$id | string | user identity URL |
$password | string | encoded user password |
Type | Description |
---|---|
bool |


checkUser(string $id, string $password) : bool
Verify if user with given $id exists and has specified $password
Name | Type | Description |
---|---|---|
$id | string | user identity URL |
$password | string | user password |
Type | Description |
---|---|
bool |


delAssociation(string $handle) : bool
Removes information about association identified by $handle
Name | Type | Description |
---|---|---|
$handle | string | assiciation handle |
Type | Description |
---|---|
bool |


delUser(string $id) : bool
Removes information abou specified user
Name | Type | Description |
---|---|---|
$id | string | user identity URL |
Type | Description |
---|---|
bool |


getAssociation(string $handle, $macFunc, $secret, $expires) : bool
Gets information about association identified by $handle Returns true if given association found and not expired and false otherwise
Name | Type | Description |
---|---|---|
$handle | string | assiciation handle |
$macFunc | ||
$secret | ||
$expires |
Type | Description |
---|---|
bool |


getTrustedSites(string $id) : array
Returns array of all trusted/untrusted sites for given user identified by $id
Name | Type | Description |
---|---|---|
$id | string | user identity URL |
Type | Description |
---|---|
array |