API Documentation

Zend/OpenId/Provider/Storage.php

Show: inherited
Table of Contents

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_OpenId  
Subpackage
Zend_OpenId_Provider  
Version
$Id: Storage.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_OpenId_Provider_Storage

Package: Zend\OpenId\Zend\OpenId\Provider

Abstract class to implement external storage for OpenID consumer

Children
\Zend_OpenId_Provider_Storage_File
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Methods

methodpublicaddAssociation( string $handle, string $macFunc, string $secret, string $expires ) : void
abstract

Stores information about session identified by $handle

Parameters
Name Type Description
$handle string

assiciation handle

$macFunc string

HMAC function (sha1 or sha256)

$secret string

shared secret

$expires string

expiration UNIX time

methodpublicaddSite( string $id, string $site, mixed $trusted ) : bool
abstract

Stores information about trusted/untrusted site for given user

Parameters
Name Type Description
$id string

user identity URL

$site string

site URL

$trusted mixed

trust data from extensions or just a boolean value

Returns
Type Description
bool
methodpublicaddUser( string $id, string $password ) : bool
abstract

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

Parameters
Name Type Description
$id string

user identity URL

$password string

encoded user password

Returns
Type Description
bool
methodpubliccheckUser( string $id, string $password ) : bool
abstract

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

Parameters
Name Type Description
$id string

user identity URL

$password string

user password

Returns
Type Description
bool
methodpublicgetAssociation( string $handle, string $macFunc, string $secret, string $expires ) : bool
abstract

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

Parameters
Name Type Description
$handle string

assiciation handle

$macFunc string

&$macFunc HMAC function (sha1 or sha256)

$secret string

&$secret shared secret

$expires string

&$expires expiration UNIX time

Returns
Type Description
bool
methodpublicgetTrustedSites( string $id ) : array
abstract

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

Parameters
Name Type Description
$id string

user identity URL

Returns
Type Description
array
methodpublichasUser( string $id ) : bool
abstract

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

Parameters
Name Type Description
$id string

user identity URL

Returns
Type Description
bool
Documentation was generated by DocBlox 0.15.1.