OpenId/Consumer/Storage.php

Show: PublicProtectedPrivateinherited
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-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_OpenId  
Subpackage
Zend_OpenId_Consumer  
Version
$Id$  

\Zend_OpenId_Consumer_Storage

Package: Zend_OpenId\Zend_OpenId_Consumer
Abstract class to implement external storage for OpenID consumer
Children
\Zend_OpenId_Consumer_Storage_File
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Methods

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

Stores information about association identified by $url/$handle

Parameters
NameTypeDescription
$urlstring

OpenID server URL

$handlestring

assiciation handle

$macFuncstring

HMAC function (sha1 or sha256)

$secretstring

shared secret

$expires\long

expiration UNIX time

methodpublicaddDiscoveryInfo(string $id, string $realId, string $server, float $version, \long $expires) : void
abstract

Stores information discovered from identity $id

Parameters
NameTypeDescription
$idstring

identity

$realIdstring

discovered real identity URL

$serverstring

discovered OpenID server URL

$versionfloat

discovered OpenID protocol version

$expires\long

expiration UNIX time

methodpublicdelAssociation(string $url) : void
abstract

Deletes association identified by $url

Parameters
NameTypeDescription
$urlstring

OpenID server URL

methodpublicdelDiscoveryInfo(string $id) : bool
abstract

Removes cached information discovered from identity $id

Parameters
NameTypeDescription
$idstring

identity

Returns
TypeDescription
bool
methodpublicgetAssociation(string $url,  $handle,  $macFunc,  $secret,  $expires) : bool
abstract

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

Parameters
NameTypeDescription
$urlstring

OpenID server URL

$handle
$macFunc
$secret
$expires
Returns
TypeDescription
bool
methodpublicgetAssociationByHandle(string $handle,  $url,  $macFunc,  $secret,  $expires) : bool
abstract

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

Parameters
NameTypeDescription
$handlestring

assiciation handle

$url
$macFunc
$secret
$expires
Returns
TypeDescription
bool
methodpublicgetDiscoveryInfo(string $id,  $realId,  $server,  $version,  $expires) : bool
abstract

Gets information discovered from identity $id Returns true if such information exists and false otherwise

Parameters
NameTypeDescription
$idstring

identity

$realId
$server
$version
$expires
Returns
TypeDescription
bool
methodpublicisUniqueNonce(string $provider, string $nonce) : bool
abstract

The function checks the uniqueness of openid.response_nonce

Parameters
NameTypeDescription
$providerstring

openid.openid_op_endpoint field from authentication response

$noncestring

openid.response_nonce field from authentication response

Returns
TypeDescription
bool
methodpublicpurgeNonces(string $date = null) : void
abstract

Removes data from the uniqueness database that is older then given date

Parameters
NameTypeDescription
$datestring

Date of expired data

Documentation was generated by phpDocumentor 2.2.0 .