ILIAS  release_4-4 Revision
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. More...
 
 storeAssociation ($server_url, $association)
 This implementation does nothing. More...
 
 getAssociation ($server_url, $handle=null)
 This implementation always returns null. More...
 
 removeAssociation ($server_url, $handle)
 This implementation always returns false. More...
 
 useNonce ($server_url, $timestamp, $salt)
 In a system truly limited to dumb mode, nonces must all be accepted. More...
 
 getAuthKey ()
 This method returns the auth key generated by the constructor. More...
 
- Public Member Functions inherited from Auth_OpenID_OpenIDStore
 storeAssociation ($server_url, $association)
 This method puts an Association object into storage, retrievable by server URL and handle. More...
 
 cleanupNonces ()
 
 cleanupAssociations ()
 
 cleanup ()
 
 supportsCleanup ()
 Report whether this storage supports cleanup. More...
 
 getAssociation ($server_url, $handle=null)
 This method returns an Association object from storage that matches the server URL and, if specified, handle. More...
 
 removeAssociation ($server_url, $handle)
 This method removes the matching association if it's found, and returns whether the association was removed or not. More...
 
 useNonce ($server_url, $timestamp, $salt)
 Called when using a nonce. More...
 
 reset ()
 Removes all entries from the store; implementation is optional. More...
 

Detailed Description

Definition at line 34 of file DumbStore.php.

Member Function Documentation

◆ Auth_OpenID_DumbStore()

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().

54  {
55  $this->auth_key = Auth_OpenID_SHA1($secret_phrase);
56  }
Auth_OpenID_SHA1($text)
Definition: HMAC.php:25
+ Here is the call graph for this function:

◆ getAssociation()

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

This implementation always returns null.

Definition at line 68 of file DumbStore.php.

69  {
70  return null;
71  }

◆ getAuthKey()

Auth_OpenID_DumbStore::getAuthKey ( )

This method returns the auth key generated by the constructor.

Definition at line 94 of file DumbStore.php.

95  {
96  return $this->auth_key;
97  }

◆ removeAssociation()

Auth_OpenID_DumbStore::removeAssociation (   $server_url,
  $handle 
)

This implementation always returns false.

Definition at line 76 of file DumbStore.php.

77  {
78  return false;
79  }

◆ storeAssociation()

Auth_OpenID_DumbStore::storeAssociation (   $server_url,
  $association 
)

This implementation does nothing.

Definition at line 61 of file DumbStore.php.

62  {
63  }

◆ useNonce()

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.

Definition at line 86 of file DumbStore.php.

87  {
88  return true;
89  }

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