API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5

Référence de la classe Auth_OpenID_Association

Liste de tous les membres

Fonctions membres publiques

Attributs publics


Documentation des fonctions membres

Auth_OpenID_Association::_makePairs ( &$  message)

Given a Auth_OpenID_Message, return the key/value pairs to be signed according to the signed list in the message. If the message lacks a signed list, return null.

private

Références $data, Auth_OpenID::arrayGet(), et Auth_OpenID::isFailure().

Voici le graphe d'appel pour cette fonction :

Auth_OpenID_Association::Auth_OpenID_Association ( handle,
secret,
issued,
lifetime,
assoc_type 
)

This is the standard constructor for creating an association. The library should create all of the necessary associations, so this constructor is not part of the external API.

private

Paramètres:
string$handleThis is the handle the server gave this association.
string$secretThis is the shared secret the server generated for this association.
integer$issuedThis is the time this association was issued, in seconds since 00:00 GMT, January 1, 1970. (ie, a unix timestamp)
integer$lifetimeThis is the amount of time this association is good for, measured in seconds since the association was issued.
string$assoc_typeThis is the type of association this instance represents. The only valid values of this field at this time is 'HMAC-SHA1' and 'HMAC-SHA256', but new types may be defined in the future.

Références Auth_OpenID_getSupportedAssociationTypes().

Voici le graphe d'appel pour cette fonction :

Auth_OpenID_Association::checkMessageSignature ( &$  message)

Confirm that the signature of these fields matches the signature contained in the data.

private

Références Auth_OpenID::isFailure().

Voici le graphe d'appel pour cette fonction :

Auth_OpenID_Association::deserialize ( class_name,
assoc_s 
)

Parse an association as stored by serialize(). This is the inverse of serialize.

Paramètres:
string$assoc_sAssociation as serialized by serialize()
Renvoie:
Auth_OpenID_Association $result instance of this class

Références $version, et Auth_OpenID_KVForm::toArray().

Référencé par Auth_OpenID_FileStore::_allAssocs(), et Auth_OpenID_FileStore::_getAssociation().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

Auth_OpenID_Association::equal ( other)

This checks to see if two Auth_OpenID_Association instances represent the same association.

Renvoie:
bool $result true if the two instances represent the same association, false otherwise.
Auth_OpenID_Association::fromExpiresIn ( expires_in,
handle,
secret,
assoc_type 
)

This is an alternate constructor (factory method) used by the OpenID consumer library to create associations. OpenID store implementations shouldn't use this constructor.

private

Paramètres:
integer$expires_inThis is the amount of time this association is good for, measured in seconds since the association was issued.
string$handleThis is the handle the server gave this association.
stringsecret This is the shared secret the server generated for this association.
assoc_typeThis is the type of association this instance represents. The only valid values of this field at this time is 'HMAC-SHA1' and 'HMAC-SHA256', but new types may be defined in the future.
Renvoie:
association An Auth_OpenID_Association instance.

Référencé par Auth_OpenID_GenericConsumer::_extractAssociation(), et Auth_OpenID_Signatory::createAssociation().

Voici le graphe d'appel pour cette fonction :

Auth_OpenID_Association::getExpiresIn ( now = null)

This returns the number of seconds this association is still valid for, or 0 if the association is no longer valid.

Renvoie:
integer $seconds The number of seconds this association is still valid for, or 0 if the association is no longer valid.

Références $now.

Auth_OpenID_Association::getMessageSignature ( &$  message)

Given an Auth_OpenID_Message, return the signature for the signed list in the message.

private

Auth_OpenID_Association::serialize ( )

Convert an association to KV form.

Renvoie:
string $result String in KV form suitable for deserialization by deserialize.

Références $data, et Auth_OpenID_KVForm::fromArray().

Voici le graphe d'appel pour cette fonction :

Auth_OpenID_Association::sign ( pairs)

Generate a signature for a sequence of (key, value) pairs

private

Paramètres:
array$pairsThe pairs to sign, in order. This is an array of two-tuples.
Renvoie:
string $signature The binary signature of this sequence of pairs

Références Auth_OpenID_KVForm::fromArray().

Voici le graphe d'appel pour cette fonction :

Auth_OpenID_Association::signMessage ( message)

Generate a signature for some fields in a dictionary

private

Paramètres:
array$fieldsThe fields to sign, in order; this is an array of strings.
array$dataDictionary of values to sign (an array of string => string pairs).
Renvoie:
string $signature The signature, base64 encoded

Références $k.


Documentation des données membres

Auth_OpenID_Association::$_macs
Valeur initiale :
 array(
                       'HMAC-SHA1' => 'Auth_OpenID_HMACSHA1',
                       'HMAC-SHA256' => 'Auth_OpenID_HMACSHA256'
                       )
Auth_OpenID_Association::$assoc_keys
Valeur initiale :
 array(
                            'version',
                            'handle',
                            'secret',
                            'issued',
                            'lifetime',
                            'assoc_type'
                            )

The ordering and name of keys as stored by serialize.

private

Auth_OpenID_Association::$SIG_LENGTH = 20

This is a HMAC-SHA1 specific value.

private


La documentation de cette classe a été générée à partir du fichier suivant :