ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
DumbStore.php
Go to the documentation of this file.
1 <?php
2 
20 require_once 'Auth/OpenID/Interface.php';
21 require_once 'Auth/OpenID/HMAC.php';
22 
35 
53  function Auth_OpenID_DumbStore($secret_phrase)
54  {
55  $this->auth_key = Auth_OpenID_SHA1($secret_phrase);
56  }
57 
61  function storeAssociation($server_url, $association)
62  {
63  }
64 
68  function getAssociation($server_url, $handle = null)
69  {
70  return null;
71  }
72 
76  function removeAssociation($server_url, $handle)
77  {
78  return false;
79  }
80 
86  function useNonce($server_url, $timestamp, $salt)
87  {
88  return true;
89  }
90 
94  function getAuthKey()
95  {
96  return $this->auth_key;
97  }
98 }
99 
Auth_OpenID_DumbStore($secret_phrase)
Creates a new Auth_OpenID_DumbStore instance.
Definition: DumbStore.php:53
getAuthKey()
This method returns the auth key generated by the constructor.
Definition: DumbStore.php:94
useNonce($server_url, $timestamp, $salt)
In a system truly limited to dumb mode, nonces must all be accepted.
Definition: DumbStore.php:86
foreach($mandatory_scripts as $file) $timestamp
Definition: buildRTE.php:81
storeAssociation($server_url, $association)
This implementation does nothing.
Definition: DumbStore.php:61
getAssociation($server_url, $handle=null)
This implementation always returns null.
Definition: DumbStore.php:68
Auth_OpenID_SHA1($text)
Definition: HMAC.php:25
removeAssociation($server_url, $handle)
This implementation always returns false.
Definition: DumbStore.php:76