ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
Auth_OpenID_DumbStore Class Reference
+ Inheritance diagram for Auth_OpenID_DumbStore:
+ Collaboration diagram for Auth_OpenID_DumbStore:

Public Member Functions

 Auth_OpenID_DumbStore ($secret_phrase)
 Creates a new Auth_OpenID_DumbStore instance.
 storeAssociation ($server_url, $association)
 This implementation does nothing.
 getAssociation ($server_url, $handle=null)
 This implementation always returns null.
 removeAssociation ($server_url, $handle)
 This implementation always returns false.
 useNonce ($server_url, $timestamp, $salt)
 In a system truly limited to dumb mode, nonces must all be accepted.
 getAuthKey ()
 This method returns the auth key generated by the constructor.
- Public Member Functions inherited from Auth_OpenID_OpenIDStore
 cleanupNonces ()
 cleanupAssociations ()
 cleanup ()
 supportsCleanup ()
 Report whether this storage supports cleanup.
 reset ()
 Removes all entries from the store; implementation is optional.

Detailed Description

Definition at line 34 of file DumbStore.php.

Member Function Documentation

Auth_OpenID_DumbStore::Auth_OpenID_DumbStore (   $secret_phrase)

Creates a new Auth_OpenID_DumbStore instance.

For the security of the tokens generated by the library, this class attempts to at least have a secure implementation of getAuthKey.

When you create an instance of this class, pass in a secret phrase. The phrase is hashed with sha1 to make it the correct length and form for an auth key. That allows you to use a long string as the secret phrase, which means you can make it very difficult to guess.

Each Auth_OpenID_DumbStore instance that is created for use by your consumer site needs to use the same $secret_phrase.

Parameters
stringsecret_phrase The phrase used to create the auth key returned by getAuthKey

Definition at line 53 of file DumbStore.php.

References Auth_OpenID_SHA1().

{
$this->auth_key = Auth_OpenID_SHA1($secret_phrase);
}

+ Here is the call graph for this function:

Auth_OpenID_DumbStore::getAssociation (   $server_url,
  $handle = null 
)

This implementation always returns null.

Reimplemented from Auth_OpenID_OpenIDStore.

Definition at line 68 of file DumbStore.php.

{
return null;
}
Auth_OpenID_DumbStore::getAuthKey ( )

This method returns the auth key generated by the constructor.

Definition at line 94 of file DumbStore.php.

{
return $this->auth_key;
}
Auth_OpenID_DumbStore::removeAssociation (   $server_url,
  $handle 
)

This implementation always returns false.

Reimplemented from Auth_OpenID_OpenIDStore.

Definition at line 76 of file DumbStore.php.

{
return false;
}
Auth_OpenID_DumbStore::storeAssociation (   $server_url,
  $association 
)

This implementation does nothing.

Reimplemented from Auth_OpenID_OpenIDStore.

Definition at line 61 of file DumbStore.php.

{
}
Auth_OpenID_DumbStore::useNonce (   $server_url,
  $timestamp,
  $salt 
)

In a system truly limited to dumb mode, nonces must all be accepted.

This therefore always returns true, which makes replay attacks feasible.

Reimplemented from Auth_OpenID_OpenIDStore.

Definition at line 86 of file DumbStore.php.

{
return true;
}

The documentation for this class was generated from the following file: