Path

ez components / documentation / api reference / latest / authentication


eZ Components latest

Authentication: ezcAuthenticationOpenidAssociation

[ Tutorial ] [ Rfcs ] [ Security ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcAuthenticationOpenidAssociation

Structure for defining an OpenID association between the server and the OpenID provider. [source]

Parents

ezcBaseStruct
   |
   --ezcAuthenticationOpenidAssociation

Member Variables

public string $handle
The handle given by the OpenID provider to this association.
public int $issued
The UNIX timestamp when the secret was generated.
public string $secret
The shared secret generated by the OpenID provider.
public string $type
The type of the association. Currently only 'HMAC-SHA1' is supported by the OpenID implementations.
public int $validity
The amount of seconds the association is valid.

Method Summary

public ezcAuthenticationOpenidAssociation __construct( $handle, $secret, $issued, $validity, [$type = 'HMAC-SHA1'] )
Constructs a new ezcAuthenticationOpenidAssociation object.
public static ezcAuthenticationOpenidAssociation __set_state( $array )
Returns a new instance of this class with the data specified by $array.

Methods

__construct

ezcAuthenticationOpenidAssociation __construct( string $handle, string $secret, int $issued, int $validity, [string $type = 'HMAC-SHA1'] )
Constructs a new ezcAuthenticationOpenidAssociation object.

Parameters

Name Type Description
$handle string Handle given by the OpenID provider to the association
$secret string The shared secret generated by the OpenID provider
$issued int The UNIX timestamp when the secret was generated
$validity int The amount of seconds the aasociation is valid
$type string The type of the association. Default is 'HMAC-SHA1'

__set_state

ezcAuthenticationOpenidAssociation __set_state( $array )
Returns a new instance of this class with the data specified by $array.
$array contains all the data members of this class in the form: array('member_name'=>value).
__set_state makes this class exportable with var_export. var_export() generates code, that calls this method when it is parsed with PHP.

Parameters

Name Type Description
$array array(string=>mixed) Associative array of data members for this class

Last updated: Mon, 21 Dec 2009