Authentication: ezcAuthenticationOpenidFileStore
[ ]
[ Rfcs ] [ Security ]
[ ]
[ ]
[ ]
[ ]
Class: ezcAuthenticationOpenidFileStore
|
Class providing file storage for OpenID authentication. [
source]
Parents
ezcAuthenticationOpenidStore
|
--ezcAuthenticationOpenidFileStore
Properties
|
string |
read/write
|
$path
The path where the files will be kept. It must exist and it must be writable. |
Inherited Member Variables
From
ezcAuthenticationOpenidStore:
Method Summary
|
public ezcAuthenticationOpenidFileStore |
__construct(
$path, [$options = null] )
Creates a new object of this class. |
|
protected string |
convertToFilename(
$value )
Creates a valid filename from the provided string. |
|
public ezcAuthenticationOpenidAssociation |
getAssociation(
$url )
Returns the unserialized association linked to the OpenID provider URL. |
|
public bool |
removeAssociation(
$url )
Removes the association linked to the OpenID provider URL. |
|
public bool |
storeAssociation(
$url, $association )
Stores an association in the store linked to the OpenID provider URL. |
|
public bool |
storeNonce(
$nonce )
Stores the nonce in the store. |
|
public bool|int |
useNonce(
$nonce )
Checks if the nonce exists and afterwards deletes it. |
Inherited Methods
From
ezcAuthenticationOpenidStore :
Methods
__construct
Creates a new object of this class.
Parameters
Throws
| Class | Description |
ezcBaseFilePermissionException |
if $path cannot be opened for reading and writing |
ezcBaseFileNotFoundException |
if $path does not exist |
convertToFilename
string convertToFilename(
string
$value )
Creates a valid filename from the provided string.
Parameters
| Name |
Type |
Description |
$value |
string |
A string which needs to be used as a valid filename |
getAssociation
Returns the unserialized association linked to the OpenID provider URL.
Returns false if the association could not be retrieved or if it expired.
Parameters
| Name |
Type |
Description |
$url |
string |
The URL of the OpenID provider |
Redefinition of
removeAssociation
bool removeAssociation(
string
$url )
Removes the association linked to the OpenID provider URL.
Returns true if the association could be removed, and false otherwise.
Parameters
| Name |
Type |
Description |
$url |
string |
The URL of the OpenID provider |
Redefinition of
storeAssociation
Stores an association in the store linked to the OpenID provider URL.
Returns true if the association was stored successfully, and false otherwise.
Parameters
Throws
| Class | Description |
ezcBaseFilePermissionException |
if the nonce cannot be written in the store |
Redefinition of
storeNonce
bool storeNonce(
string
$nonce )
Stores the nonce in the store.
Returns true if the nonce was stored successfully, and false otherwise.
Parameters
| Name |
Type |
Description |
$nonce |
string |
The nonce value to store |
Throws
| Class | Description |
ezcBaseFilePermissionException |
if the nonce cannot be written in the store |
Redefinition of
useNonce
bool|int useNonce(
string
$nonce )
Checks if the nonce exists and afterwards deletes it.
Returns the timestamp of the nonce if it exists, and false otherwise.
Parameters
| Name |
Type |
Description |
$nonce |
string |
The nonce value to check and delete |
Redefinition of
Last updated: Mon, 21 Dec 2009