OpenId/Provider/Storage.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
- Children
- \Zend_OpenId_Provider_Storage_File
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Methods
addAssociation(string $handle, string $macFunc, string $secret, string $expires) : void
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 |
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 extensions 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 |
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 |