OpenId/Consumer/Storage/File.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 [email protected] 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_File

Package: Zend_OpenId\Zend_OpenId_Consumer
External storage implemmentation using serialized files
Parent(s)
\Zend_OpenId_Consumer_Storage
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprivatestring $_dir
Directory name to store data files in
Details
Type
string

Methods

methodpublic__construct(string $dir = null) : void

Constructs storage object and creates storage directory

Parameters
NameTypeDescription
$dirstring

directory name to store data files in

Throws
ExceptionDescription
\Zend_OpenId_Exception
methodpublicaddAssociation(string $url, string $handle, string $macFunc, string $secret, \long $expires) : bool

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

Returns
TypeDescription
bool
methodpublicaddDiscoveryInfo(string $id, string $realId, string $server, float $version, \long $expires) : bool

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

Returns
TypeDescription
bool
methodpublicdelAssociation(string $url) : bool

Deletes association identified by $url

Parameters
NameTypeDescription
$urlstring

OpenID server URL

Returns
TypeDescription
bool
methodpublicdelDiscoveryInfo(string $id) : bool

Removes cached information discovered from identity $id

Parameters
NameTypeDescription
$idstring

identity

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

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

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

Parameters
NameTypeDescription
$handlestring

assiciation handle

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

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

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(mixed $date = null) : void

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

Parameters
NameTypeDescription
$datemixed

date of expired data

Documentation was generated by phpDocumentor 2.2.0 .