Property | Type | Description | |
---|---|---|---|
$SIG_LENGTH | This is a HMAC-SHA1 specific value. | ||
$_macs | |||
$assoc_keys | The ordering and name of keys as stored by serialize. |
Method | Description | |
---|---|---|
__construct ( string $handle, string $secret, integer $issued, integer $lifetime, string $assoc_type ) | This is the standard constructor for creating an association. | |
_makePairs ( $message ) | Given a {@link 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. | |
checkMessageSignature ( $message ) | Confirm that the signature of these fields matches the signature contained in the data. | |
deserialize ( $class_name, string $assoc_s ) : Auth_OpenID_Association | Parse an association as stored by serialize(). This is the inverse of serialize. | |
equal ( $other ) : boolean | This checks to see if two {@link Auth_OpenID_Association} instances represent the same association. | |
fromExpiresIn ( integer $expires_in, string $handle, $secret, $assoc_type ) : association | This is an alternate constructor (factory method) used by the OpenID consumer library to create associations. OpenID store implementations shouldn't use this constructor. | |
getExpiresIn ( $now = null ) : integer | This returns the number of seconds this association is still valid for, or 0 if the association is no longer valid. | |
getMessageSignature ( $message ) | Given an {@link Auth_OpenID_Message}, return the signature for the signed list in the message. | |
serialize ( ) : string | Convert an association to KV form. | |
sign ( array $pairs ) : string | Generate a signature for a sequence of (key, value) pairs | |
signMessage ( $message ) : string | Generate a signature for some fields in a dictionary |
public __construct ( string $handle, string $secret, integer $issued, integer $lifetime, string $assoc_type ) | ||
$handle | string | This is the handle the server gave this association. |
$secret | string | This is the shared secret the server generated for this association. |
$issued | integer | This is the time this association was issued, in seconds since 00:00 GMT, January 1, 1970. (ie, a unix timestamp) |
$lifetime | integer | This is the amount of time this association is good for, measured in seconds since the association was issued. |
$assoc_type | string | This 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. |
public _makePairs ( $message ) |
public checkMessageSignature ( $message ) |
static public deserialize ( $class_name, string $assoc_s ) : Auth_OpenID_Association | ||
$assoc_s | string | Association as serialized by serialize() |
return | Auth_OpenID_Association | $result instance of this class |
static public fromExpiresIn ( integer $expires_in, string $handle, $secret, $assoc_type ) : association | ||
$expires_in | integer | This is the amount of time this association is good for, measured in seconds since the association was issued. |
$handle | string | This is the handle the server gave this association. |
return | association | An {@link Auth_OpenID_Association} instance. |
public getExpiresIn ( $now = null ) : integer | ||
return | integer | $seconds The number of seconds this association is still valid for, or 0 if the association is no longer valid. |
public getMessageSignature ( $message ) |
public signMessage ( $message ) : string | ||
return | string | $signature The signature, base64 encoded |