Class Auth_OpenID_Association

Description

This class represents an association between a server and a consumer. In general, users of this library will never see instances of this object. The only exception is if you implement a custom Auth_OpenID_OpenIDStore.

If you do implement such a store, it will need to store the values of the handle, secret, issued, lifetime, and assoc_type instance variables.

Located in /Auth/OpenID/Association.php (line 44)


	
			
Method Summary
static Auth_OpenID_Association deserialize ( $class_name, string $assoc_s)
bool equal ( $other)
integer getExpiresIn ([ $now = null])
string serialize ()
Methods
static deserialize (line 209)

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

  • return: instance of this class
static Auth_OpenID_Association deserialize ( $class_name, string $assoc_s)
  • string $assoc_s: Association as serialized by serialize()
  • $class_name
equal (line 170)

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

  • return: true if the two instances represent the same association, false otherwise.
bool equal ( $other)
  • $other
getExpiresIn (line 154)

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

  • return: The number of seconds this association is still valid for, or 0 if the association is no longer valid.
integer getExpiresIn ([ $now = null])
  • $now
serialize (line 186)

Convert an association to KV form.

  • return: String in KV form suitable for deserialization by deserialize.
string serialize ()

Documentation generated on Thu, 05 May 2011 19:14:23 -0400 by phpDocumentor 1.4.3